On Mon, May 23, 2016, at 07:41 PM, Jonathan Gray wrote:
> On Mon, May 23, 2016 at 01:58:44PM -0600, Aaron Bieber wrote:
> > Simply flashing the miniroot image onto an SD card and booting will
> > result in:
> >
> > reading uEnv.txt
> > 162 bytes read in 3 ms (52.7 KiB/s)
> > Importing environment from mmc0 ...
> > Running uenvcmd ...
> > reading bsdrd.umg
> > 10883512 bytes read in 507 ms (20.5 MiB/s)
> > ## Booting kernel from Legacy Image at 82800000 ...
> > Image Name: boot
> > Image Type: ARM Linux Kernel Image (uncompressed)
> > Data Size: 10883448 Bytes = 10.4 MiB
> > Load Address: 80300000
> > Entry Point: 80300000
> > Verifying Checksum ... OK
> > Loading Kernel Image ... Image too large: increase
> > CONFIG_SYS_BOOTM_LEN
> > Must RESET board to recover
> > resetting ...
> >
> > U-Boot SPL 2015.10 (Feb 01 2016 - 13:59:48)
> > OMAP4460 ES1.1
>
> The miniroots are built with u-boot 2016.05 why do you have
> this version? There is no uEnv.txt only a boot.scr
I built a version of u-boot with CONFIG_SYS_BOOTM_LEN bumped, to get
past this initial error.
>
> Can you send the output of printenv and try
>
> setenv loadaddr 0x82800000 ;
> run findfdt ;
> load mmc ${mmcdev}:1 ${loadaddr} bsd.umg ;
> load mmc ${mmcdev}:1 ${fdt_addr_r} ${fdtfile} ;
> bootm ${loadaddr} - ${fdt_addr_r} ;
>
Net: No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
213 bytes read in 3 ms (69.3 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
reading bsd.umg
10883556 bytes read in 480 ms (21.6 MiB/s)
reading omap4-panda-es.dtb
57353 bytes read in 6 ms (9.1 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
Image Name: boot
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 10883492 Bytes = 10.4 MiB
Load Address: 80300000
Entry Point: 80300000
Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Kernel Image ... Image too large: increase
CONFIG_SYS_BOOTM_LEN
Must RESET board to recover
resetting ...
U-Boot SPL 2016.05 (May 17 2016 - 17:10:59)
OMAP4460 ES1.1
Trying to boot from MMC1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img
U-Boot 2016.05 (May 17 2016 - 17:10:59 +1000)
CPU : OMAP4460 ES1.1
Board: OMAP4 Panda
I2C: ready
DRAM: 1 GiB
MMC: OMAP SD/MMC: 0
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
Net: No ethernet found.
Hit any key to stop autoboot: 0
=> setenv loadaddr 0x82800000 ;
=> run findfdt ;
=> load mmc ${mmcdev}:1 ${loadaddr} bsd.umg ;
reading bsd.umg
10883556 bytes read in 480 ms (21.6 MiB/s)
=> load mmc ${mmcdev}:1 ${fdt_addr_r} ${fdtfile} ;
reading omap4-panda-es.dtb
57353 bytes read in 7 ms (7.8 MiB/s)
=> bootm ${loadaddr} - ${fdt_addr_r} ;
## Booting kernel from Legacy Image at 82800000 ...
Image Name: boot
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 10883492 Bytes = 10.4 MiB
Load Address: 80300000
Entry Point: 80300000
Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Kernel Image ... Image too large: increase
CONFIG_SYS_BOOTM_LEN
Must RESET board to recover
resetting ...
U-Boot SPL 2016.05 (May 17 2016 - 17:10:59)
OMAP4460 ES1.1
Trying to boot from MMC1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img
U-Boot 2016.05 (May 17 2016 - 17:10:59 +1000)
CPU : OMAP4460 ES1.1
Board: OMAP4 Panda
I2C: ready
DRAM: 1 GiB
MMC: OMAP SD/MMC: 0
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
Net: No ethernet found.
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
reading boot.scr
213 bytes read in 3 ms (69.3 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
reading bsd.umg
10883556 bytes read in 480 ms (21.6 MiB/s)
reading omap4-panda-es.dtb
57353 bytes read in 6 ms (9.1 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
Image Name: boot
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 10883492 Bytes = 10.4 MiB
Load Address: 80300000
Entry Point: 80300000
Verifying Checksum ... OK
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Kernel Image ... Image too large: increase
CONFIG_SYS_BOOTM_LEN
Must RESET board to recover
resetting ...
U-Boot SPL 2016.05 (May 17 2016 - 17:10:59)
OMAP4460 ES1.1
Trying to boot from MMC1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img
U-Boot 2016.05 (May 17 2016 - 17:10:59 +1000)
CPU : OMAP4460 ES1.1
Board: OMAP4 Panda
I2C: ready
DRAM: 1 GiB
MMC: OMAP SD/MMC: 0
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
Net: No ethernet found.
Hit any key to stop autoboot: 0
=>
> >
> > I was able to get the image to boot by bumping CONFIG_SYS_BOOTM_LEN, but
> > then I run into this:
> >
> > Available disks are: sd0.
> > Which disk is the root disk? ('?' for details) [sd0]
> > Disk: sd0 geometry: 1936/255/63 [31116288 Sectors]
> > Offset: 0 Signature: 0xAA55
> > Starting Ending LBA Info:
> > #: id C H S - C H S [ start: size ]
> > -------------------------------------------------------------------------------
> > *0: 0C 0 1 1 - 1 254 63 [ 63: 32067 ]
> > Win95 FAT32L
> > 1: 00 0 0 0 - 0 0 0 [ 0: 0 ]
> > unused
> > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ]
> > unused
> > 3: A6 0 1 2 - 1 254 63 [ 64: 32066 ]
> > OpenBSD
> > Use (W)hole disk$ or (E)dit the MBR? [whole]
> > Creating a msdos partition and an OpenBSD partition for rest of
> > sd0...done.
> > /dev/rsd0i: 32668 sectors in 8167 FAT16 clusters (2048 bytes/cluster)
> > bps=512 spc=4 res=1 nft=2 rde=512 sec=32768 mid=0xf8 spf=32 spt=63
> > hds=255 hid=64
> > The auto-allocated layout for sd0 is:
> > # size offset fstype [fsize bsize cpg]
> > a: 480.5M 32832 4.2BSD 2048 16384 1 # /
> > b: 880.9M 1016832 swap
> > c: 15193.5M 0 unused
> > d: 760.7M 2821024 4.2BSD 2048 16384 1 # /tmp
> > e: 1121.2M 4379008 4.2BSD 2048 16384 1 # /var
> > f: 1300.5M 6675264 4.2BSD 2048 16384 1 # /usr
> > g: 752.3M 9338624 4.2BSD 2048 16384 1 #
> > /usr/X11R6
> > h: 2848.9M 10879296 4.2BSD 2048 16384 1 #
> > /usr/local
> > i: 16.0M 64 MSDOS
> > j: 1184.2M 16713920 4.2BSD 2048 16384 1 #
> > /usr/src
> > k: 1620.4M 19139136 4.2BSD 2048 16384 1 #
> > /usr/obj
> > l: 4227.8M 22457664 4.2BSD 2048 16384 1 # /home
> > Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]
> > newfs: reduced number of fragments per cylinder group from 61496 to
> > 61248 to enlarge last cylinder group
> > /dev/rsd0a: 480.5MB in 984000 sectors of 512 bytes
> > 5 cylinder groups of 119.62MB, 7656 blocks, 15360 inodes each
> > newfs: wtfs: write error on block 32: Input/output error
> > newfs: fc637acb15c90d77.l: No such file or directory
> > newfs: fc637acb15c90d77.d: No such file or directory
> > newfs: fc637acb15c90d77.f: No such file or directory
> > newfs: fc637acb15c90d77.g: No such file or directory
> > newfs: fc637acb15c90d77.h: No such file or directory
> > newfs: fc637acb15c90d77.k: No such file or directory
> > newfs: fc637acb15c90d77.j: No such file or directory
> > newfs: fc637acb15c90d77.e: No such file or directory
> > mount_ffs: fc637acb15c90d77.a on /mnt: No such file or directory
> >
> > mount_ffs: fc637acb15c90d77.l on /mnt/home: No such file or directory
> >
> > mount_ffs: fc637acb15c90d77.d on /mnt/tmp: No such file or directory
> >
> > mount_ffs: fc637acb15c90d77.f on /mnt/usr: No such file or directory
> >
> > mount_ffs: fc637acb15c90d77.g on /mnt/usr/X11R6: No such file or
> > directory
> >
> > mount_ffs: fc637acb15c90d77.h on /mnt/usr/local: No such file or
> > directory
> >
> > mount_ffs: fc637acb15c90d77.k on /mnt/usr/obj: No such file or directory
> >
> > mount_ffs: fc637acb15c90d77.j on /mnt/usr/src: No such file or directory
> >
> > mount_ffs: fc637acb15c90d77.e on /mnt/var: No such file or directory
> >
> >
> > Anyone have any suggestions?
> >
>