"panic: initarm: out of memory" after upgrading to snapshot downloaded 2017-06-10 (beaglebone black)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

"panic: initarm: out of memory" after upgrading to snapshot downloaded 2017-06-10 (beaglebone black)

Luke Tidd
Sorry the entire serial output from the upgrade is not available.
The log lasted below shows the end of the upgrade, and two attempts to
boot bsd and bsd.rd.
I mostly mashed enter during the upgrade like usual. The mirror was
openbsd.cs.toronto.edu.
After mounting my SD card on another machine, I realize apparently I
had installed OpenBSD to the internal memory of the beagle bone. This
post is mostly informational in the event in which I haven't done
something wrong and the new kernel is really causing a problem for
other people.


Output from my console server:
Entering charater/text Mode
Escape character is ^]

Installing base61.tgz   100% |**************************| 53626 KB    03:37
Installing comp61.tgz   100% |**************************| 42569 KB    02:07
Installing man61.tgz    100% |**************************|  7148 KB    00:50
Installing game61.tgz   100% |**************************|  2706 KB    00:14
Installing xbase61.tgz  100% |**************************| 15377 KB    01:03
Installing xshare61.tgz 100% |**************************|  4408 KB    00:24
Installing xfont61.tgz  100% |**************************| 39353 KB    07:03
Installing xserv61.tgz  100% |**************************|  6614 KB    00:23
Location of sets? (disk http nfs or 'done') [done]
Location of sets? (disk http nfs or 'done') [done] done
Making all device nodes...done.

CONGRATULATIONS! Your OpenBSD upgrade has been successfully completed!
To boot the new system, enter 'reboot' at the command prompt.

# reboot
syncing disks... done
rebooting...

U-Boot SPL 2017.03 (Mar 26 2017 - 16:58:08)
Trying to boot from MMC1
MMC partition switch failed
*** Warning - MMC partition switch failed, using default environment

reading u-boot.img
reading u-boot.img


U-Boot 2017.03 (Mar 26 2017 - 16:58:08 -0600)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
reading /am335x-boneblack.dtb
34643 bytes read in 9 ms (3.7 MiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
reading efi/boot/bootarm.efi
64556 bytes read in 13 ms (4.7 MiB/s)
## Starting EFI application at 82000000 ...
Scanning disks on usb...
Scanning disks on mmc...
MMC Device 2 not found
MMC Device 3 not found
Found 6 disks
>> OpenBSD/armv7 BOOTARM 0.5
boot>
booting sd0a:/bsd: 3860848+161316+491028 [80+511408+240104]=0x506dbc

OpenBSD/armv7 booting ...
arg0 0x806dbc arg1 0xe05 arg2 0x88000000
Allocating page tables
freestart = 0xc0807000, free_pages = 915449 (0x000df7f9)
panic: initarm: out of memory


U-Boot 2017.03 (Mar 26 2017 - 16:58:08 -0600)

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
** Unable to read file boot.scr **
reading uEnv.txt
** Unable to read file uEnv.txt **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
reading /am335x-boneblack.dtb
34643 bytes read in 9 ms (3.7 MiB/s)
Found EFI removable media binary efi/boot/bootarm.efi
reading efi/boot/bootarm.efi
64556 bytes read in 14 ms (4.4 MiB/s)
## Starting EFI application at 82000000 ...
Scanning disks on usb...
Scanning disks on mmc...
MMC Device 2 not found
MMC Device 3 not found
Found 6 disks
>> OpenBSD/armv7 BOOTARM 0.5
boot> bsd.rd
booting sd0a:bsd.rd: 2176476+7984008+439148 [80+305648+145631]=0xa8ebb0

OpenBSD/armv7 booting ...
arg0 0xd8ebb0 arg1 0xe05 arg2 0x88000000
Allocating page tables
freestart = 0xc0d8f000, free_pages = 914033 (0x000df271)
panic: initarm: out of memory
The operating system has halted.
Please press any key to reboot.

Reply | Threaded
Open this post in threaded view
|

Re: "panic: initarm: out of memory" after upgrading to snapshot downloaded 2017-06-10 (beaglebone black)

Patrick Wildt-3
On Sun, Jun 11, 2017 at 04:50:07PM -0400, Luke Tidd wrote:

> Sorry the entire serial output from the upgrade is not available.
> The log lasted below shows the end of the upgrade, and two attempts to
> boot bsd and bsd.rd.
> I mostly mashed enter during the upgrade like usual. The mirror was
> openbsd.cs.toronto.edu.
> After mounting my SD card on another machine, I realize apparently I
> had installed OpenBSD to the internal memory of the beagle bone. This
> post is mostly informational in the event in which I haven't done
> something wrong and the new kernel is really causing a problem for
> other people.
>
>
> Output from my console server:
> Entering charater/text Mode
> Escape character is ^]
>
> Installing base61.tgz   100% |**************************| 53626 KB    03:37
> Installing comp61.tgz   100% |**************************| 42569 KB    02:07
> Installing man61.tgz    100% |**************************|  7148 KB    00:50
> Installing game61.tgz   100% |**************************|  2706 KB    00:14
> Installing xbase61.tgz  100% |**************************| 15377 KB    01:03
> Installing xshare61.tgz 100% |**************************|  4408 KB    00:24
> Installing xfont61.tgz  100% |**************************| 39353 KB    07:03
> Installing xserv61.tgz  100% |**************************|  6614 KB    00:23
> Location of sets? (disk http nfs or 'done') [done]
> Location of sets? (disk http nfs or 'done') [done] done
> Making all device nodes...done.
>
> CONGRATULATIONS! Your OpenBSD upgrade has been successfully completed!
> To boot the new system, enter 'reboot' at the command prompt.
>
> # reboot
> syncing disks... done
> rebooting...
>
> U-Boot SPL 2017.03 (Mar 26 2017 - 16:58:08)
> Trying to boot from MMC1
> MMC partition switch failed
> *** Warning - MMC partition switch failed, using default environment
>
> reading u-boot.img
> reading u-boot.img
>
>
> U-Boot 2017.03 (Mar 26 2017 - 16:58:08 -0600)
>
> CPU  : AM335X-GP rev 2.1
> I2C:   ready
> DRAM:  512 MiB
> MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
> *** Warning - bad CRC, using default environment
>
> <ethaddr> not set. Validating first E-fuse MAC
> Net:   cpsw, usb_ether
> Press SPACE to abort autoboot in 2 seconds
> switch to partitions #0, OK
> mmc0 is current device
> SD/MMC found on device 0
> reading boot.scr
> ** Unable to read file boot.scr **
> reading uEnv.txt
> ** Unable to read file uEnv.txt **
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> reading /am335x-boneblack.dtb
> 34643 bytes read in 9 ms (3.7 MiB/s)
> Found EFI removable media binary efi/boot/bootarm.efi
> reading efi/boot/bootarm.efi
> 64556 bytes read in 13 ms (4.7 MiB/s)
> ## Starting EFI application at 82000000 ...
> Scanning disks on usb...
> Scanning disks on mmc...
> MMC Device 2 not found
> MMC Device 3 not found
> Found 6 disks
> >> OpenBSD/armv7 BOOTARM 0.5
> boot>
> booting sd0a:/bsd: 3860848+161316+491028 [80+511408+240104]=0x506dbc
>
> OpenBSD/armv7 booting ...
> arg0 0x806dbc arg1 0xe05 arg2 0x88000000
> Allocating page tables
> freestart = 0xc0807000, free_pages = 915449 (0x000df7f9)
> panic: initarm: out of memory
>
>
> U-Boot 2017.03 (Mar 26 2017 - 16:58:08 -0600)
>
> CPU  : AM335X-GP rev 2.1
> I2C:   ready
> DRAM:  512 MiB
> MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
> *** Warning - bad CRC, using default environment
>
> <ethaddr> not set. Validating first E-fuse MAC
> Net:   cpsw, usb_ether
> Press SPACE to abort autoboot in 2 seconds
> switch to partitions #0, OK
> mmc0 is current device
> SD/MMC found on device 0
> reading boot.scr
> ** Unable to read file boot.scr **
> reading uEnv.txt
> ** Unable to read file uEnv.txt **
> switch to partitions #0, OK
> mmc0 is current device
> Scanning mmc 0:1...
> reading /am335x-boneblack.dtb
> 34643 bytes read in 9 ms (3.7 MiB/s)
> Found EFI removable media binary efi/boot/bootarm.efi
> reading efi/boot/bootarm.efi
> 64556 bytes read in 14 ms (4.4 MiB/s)
> ## Starting EFI application at 82000000 ...
> Scanning disks on usb...
> Scanning disks on mmc...
> MMC Device 2 not found
> MMC Device 3 not found
> Found 6 disks
> >> OpenBSD/armv7 BOOTARM 0.5
> boot> bsd.rd
> booting sd0a:bsd.rd: 2176476+7984008+439148 [80+305648+145631]=0xa8ebb0
>
> OpenBSD/armv7 booting ...
> arg0 0xd8ebb0 arg1 0xe05 arg2 0x88000000
> Allocating page tables
> freestart = 0xc0d8f000, free_pages = 914033 (0x000df271)
> panic: initarm: out of memory
> The operating system has halted.
> Please press any key to reboot.
>

Yes, sorry, I f'd up.  The change was already backouted, you only need
to recompile and install efiboot/BOOTARM.EFI.  Hopefully that's in the
next snap.

Patrick