Modify

Opened 3 years ago

Last modified 3 years ago

#18073 new defect

trunk fails to boot on OMAP (Beagleboard)

Reported by: zloop Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Cc:

Description

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)

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by zloop

diffconfig output:

CONFIG_TARGET_omap=y
CONFIG_TARGET_omap_Default=y
CONFIG_TARGET_BOARD="omap"
CONFIG_DEVEL=y
CONFIG_BUILD_LOG=y
CONFIG_DOWNLOAD_FOLDER="/home/.........."
CONFIG_LOCALMIRROR="file:///home/......."

comment:2 Changed 3 years ago by zloop

  • one issue was the button pressing (I pressed that USR button too long);

see bootcmd= ... script

  • second issue

"WARNING: Could not determine device tree to use"
building a new image now where findfdt=... script is patched (upstream uboot git version)

comment:3 Changed 3 years ago by zloop

  • second issue is fixed by

http://patchwork.openwrt.org/patch/6435/

hangs at starting kernel:

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:  0 
mmc0 is current device
gpio: pin 173 (gpio 173) value is 1
gpio: pin 7 (gpio 7) value is 0
SD/MMC found on device 0
reading uEnv.txt
442 bytes read in 5 ms (85.9 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading zImage
1860848 bytes read in 144 ms (12.3 MiB/s)
reading omap3-beagle.dtb
15169 bytes read in 9 ms (1.6 MiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x1c64f0 ]
## Flattened Device Tree blob at 80f80000
   Booting using the fdt blob at 0x80f80000
   Using Device Tree in place at 80f80000, end 80f86b40

Starting kernel ...

uEnv.txt is

kernel_file=zImage
loadzimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file}
loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile}

console=ttyO0,115200n8
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext2 rootwait

mmcargs=setenv bootargs console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} ${optargs}

uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - ${fdtaddr}

optargs="debug init=/etc/preinit"

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.