#18073: trunk fails to boot on OMAP (Beagleboard)
-------------------------+----------------------------------
Reporter: zloop | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Keywords: |
-------------------------+----------------------------------
Hardware: EBV Beagleboard (c4)
boot with sdcard (keep user button pressed and then press reset)
log:
{{{
U-Boot SPL 2013.10 (Oct 08 2014 - 13:49:10)
reading u-boot.img
reading u-boot.img
U-Boot 2013.10 (Oct 08 2014 - 13:49:10)
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 MHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Beagle Rev C4
i2c_probe: pads on bus 1 probably not configured (status=0x10)
No EEPROM on expansion board
Die ID #2f92000400000000040365fa16001013
Net: usb_ether
Hit any key to stop autoboot: 3 ^H^H^H 2 ^H^H^H 1 ^H^H^H 0
WARNING: Could not determine device tree to use
mmc0 is current device
gpio: pin 173 (gpio 173) value is 1
gpio: pin 7 (gpio 7) value is 1
SD/MMC found on device 0
reading user.txt
** Unable to read file user.txt **
** File not found /boot/uImage **
Booting from nand ...
(not important from here on)
}}}
printenv lists:
{{{
baudrate=115200
beaglerev=C4
bootargs=console=ttyO2,115200n8 mpurate=auto buddy=none camera=none
vram=12M omapfb.mode=dvi:640x480MR-16@60 omapdss.def_disp=dvi
root=ubi0:rootfs ubi.mtd=4 rootfstype=ubifs
bootcmd=run findfdt; mmc dev ${mmcdev}; if mmc rescan; then if run
userbutton; then setenv bootenv uEnv.txt;else setenv bootenv
user.txt;fi;echo SD/MMC found on device ${mmcdev};if run loadbootenv; then
echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n
$uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage;
then run mmcboot;fi;fi;run nandboot;setenv bootfile zImage;if run
loadimage; then run loadfdt;run mmcbootz; fi;
bootdelay=3
bootdir=/boot
bootenv=user.txt
bootfile=zImage
bootpart=0:2
buddy=none
camera=none
console=ttyO2,115200n8
defaultdisplay=dvi
dieid#=2f92000400000000040365fa16001013
dvimode=640x480MR-16@60
ethact=usb_ether
fdt_high=0xffffffff
fdtaddr=0x80f80000
findfdt=if test $beaglerev = AxBx; then setenv fdtfile omap3-beagle.dtb;
fi; if test $beaglerev = Cx; then setenv fdtfile omap3-beagle.dtb; fi; if
test $beaglerev = xMAB; then setenv fdtfile omap3-beagle-xm.dtb; fi; if
test $beaglerev = xMC; then setenv fdtfile omap3-beagle-xm.dtb; fi; if
test $fdtfile = undefined; then echo WARNING: Could not determine device
tree to use; fi;
importbootenv=echo Importing environment from mmc ...; env import -t
$loadaddr $filesize
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadramdisk=load mmc ${bootpart} ${rdaddr} ${bootdir}/${ramdisk}
mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode}
omapdss.def_disp=${defaultdisplay} root=${mmcroot}
rootfstype=${mmcrootfstype}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcbootz=echo Booting with DT from mmc${mmcdev} ...; run mmcargs; bootz
${loadaddr} - ${fdtaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
mpurate=auto
nandargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode}
omapdss.def_disp=${defaultdisplay} root=${nandroot}
rootfstype=${nandrootfstype}
nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr}
280000 400000; bootm ${loadaddr}
nandroot=ubi0:rootfs ubi.mtd=4
nandrootfstype=ubifs
ramargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate}
buddy=${buddy} vram=${vram} omapfb.mode=dvi:${dvimode}
omapdss.def_disp=${defaultdisplay} root=${ramroot}
rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}
ramdisk=ramdisk.gz
ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64M
ramrootfstype=ext2
rdaddr=0x81000000
stderr=serial
stdin=serial
stdout=serial
usbtty=cdc_acm
userbutton=if gpio input 173; then run userbutton_xm; else run
userbutton_nonxm; fi;
userbutton_nonxm=gpio input 7;
userbutton_xm=gpio input 4;
vram=12M
Environment size: 3214/131068 bytes
}}}
FAT32 does hold files: MLO , openwrt-omap-zImage , u-boot.img ,
omap3-beagle.dtb and uEnv.txt slightly edited from the wiki page
of http://wiki.openwrt.org/toh/beaglebone/black
according to serial log the correct version of u-boot is loaded
Angstrom boots (3.0 kernel) with uImage (no user.txt) from a different
card
{{{
U-Boot SPL 2011.12-dirty (Dec 31 2012 - 11:51:48)
U-Boot 2011.12-dirty (Dec 31 2012 - 11:51:48)
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/18073>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets