[SOLVED] boot from SD zImage not found

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

[SOLVED] boot from SD zImage not found

Postby peer23peer » Wed Jul 13, 2016 4:50 pm

Hello,

First time posting here.

I'm trying to install Arch on my BBB rev C. using the described method on https://archlinuxarm.org/platforms/armv7/ti/beaglebone-black but it can't find my zImage. It hangs while the two outer LEDS are on with the following message.

Code: Select all
Net:   <ethaddr> not set. Validating first E-fuse MAC
Phy 0 not found
cpsw
Hit any key to stop autoboot:  0
gpio: pin 53 (gpio 53) value is 1
starting USB...
USB0:   Port not available.
switch to partitions #0, OK
mmc0 is current device
mmc found on device 0
Checking for: /boot/uEnv.txt ...
gpio: pin 54 (gpio 54) value is 1
gpio: pin 55 (gpio 55) value is 1
reading /boot/zImage
** Unable to read file /boot/zImage **
No kernel found
gpio: pin 54 (gpio 54) value is 0
gpio: pin 55 (gpio 55) value is 0
switch to partitions #0, OK
mmc1(part 0) is current device
mmc found on device 1
Checking for: /boot/uEnv.txt ...
gpio: pin 54 (gpio 54) value is 1
1184 bytes read in 22 ms (51.8 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uenvcmd is set ...
gpio: pin 55 (gpio 55) value is 1
** File not found /boot/zImage **
No kernel found
gpio: pin 54 (gpio 54) value is 0
gpio: pin 55 (gpio 55) value is 0
USB is stopped. Please issue 'usb start' first.
USB is stopped. Please issue 'usb start' first.
gpio: pin 54 (gpio 54) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 56 (gpio 56) value is 1
U-Boot#


Checked the md5sum of the downloaded image and it checks out, performed sync's between each writing operation.
I tried multiple changes to the uEnv.txt suggested at https://archlinuxarm.org/forum/viewtopic.php?f=48&t=8242&p=44246&hilit=zImage#p44246 such as:

Code: Select all
uenvcmd=run findfdt; if test $board_name = A335BNLT; then i2c mw 0x24 1 0x3e; setenv mmcdev 1; mmc dev ${mmcdev}; if mmc rescan; then setenv mmc1 1;else setenv mmc1 0;fi;fi;setenv mmcdev 0; mmc dev ${mmcdev}; if mmc rescan; then setenv mmc0 1;else setenv mmc0 0;fi;if run loaduimage; then run loadfdt;run mmcboot;fi;
mmcroot=/dev/mmcblk0p2 rw
loadfdt=ext4load mmc ${mmcdev}:2 ${fdtaddr} /boot/dtbs/${fdtfile}
loaduimage=if ext4load mmc 0:2 ${loadaddr} /boot/zImage; then setenv mmcdev 0; else setenv mmcdev 1; if test $mmc0 = 1; then setenv mmcroot /dev/mmcblk1p2 rw; fi; ext4load mmc 1:2 ${loadaddr} /boot/zImage; fi
mmcboot=echo Booting from mmc ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}


I also tried to move the boot folder to an alternative partition formated in fat and create the U-boot via:
Code: Select all
dd if=boot/MLO of=/dev/mmcblk0 count=1 seek=1 conv=notrunc bs=128k
dd if=boot/u-boot.img of=/dev/mmcblk0 count=2 seek=1 conv=notrunc bs=384k


What am I missing?

Every suggestion is more then welcome.

Best regards
Last edited by peer23peer on Sun Jul 17, 2016 9:21 am, edited 1 time in total.
peer23peer
 
Posts: 3
Joined: Wed Jul 13, 2016 4:30 pm

Re: boot from SD zImage not found

Postby peer23peer » Thu Jul 14, 2016 9:18 am

I got it working.

I forgot to check my e2fsprogs version, which was greater the 1.43

Create the ext4 filesystem:
For e2fsprogs < 1.43:
mkfs.ext4 /dev/sdX1
For e2fsprogs >= 1.43:
mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdX1


by performing:
Code: Select all
mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdX1
during the build I got it working
peer23peer
 
Posts: 3
Joined: Wed Jul 13, 2016 4:30 pm


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 1 guest

cron