Problems with Booting of Beagle Board Angstrom after changing Environment Variables

Hey,

     I was trying to do some changes in the default settings of the
environment variables which were initially set by the following
commands :

# setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
rootwait'
# setenv bootcmd 'mmc init;fatload mmc 0 80300000 uImage;bootm
80300000'

I added the following attributes video=omapfb.mode=dvi:640x480MR-24@60
after which the beagle board stopped booting.

No matter what i did after that by tweaking the environment variables
it dint boot and stopped it always stopped at this particular point
waiting for Root Device /dev/mmcblk0p2 :

[ 16.025360] lib80211: common routines for IEEE802.11 drivers
[ 16.031097] ThumbEE CPU extension supported.
[ 16.035430] Power Management for TI OMAP3.
[ 16.040252] SmartReflex driver initialized
[ 16.054931] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 1
[ 16.063598] registered taskstats version 1
[ 16.086669] Console: switching to colour frame buffer device 80x30
[ 16.109405] regulator_init_complete: incomplete constraints,
leaving VDAC on
[ 16.117187] omap_vout omap_vout: probed for an unknown device
[ 16.123535] Waiting for root device /dev/mmcblk0p2...

It keeps waiting for the root device...

I Nand erased it and did a beagle board recovery but still the problem
persists.

What i am not able to understand is that how can the changes i made
still affect the uboot settings even after i erased the Nand Flash ??

Then i tried changing the Linux kernel versions from 2.6.29 which i
previously had to 2.6.32 but the problem persists !!

I have no clue on how to go about next ... Any help will be really
appreciated

try to move SD card deeper in the slot. I had the same problem.

2010/8/30 Jairaj <jungleeagle@gmail.com>

Why are you overwriting the perfectly good defaults? Go do a

nand erase 260000 20000

to get the working things back

Hi,

I tried both the solutions… nand erase 260000 20000 results in the recovery but it hangs again at the same point. I am pasting the log that i get and where it gets stuck.

Starting kernel …

Uncompressing Linux… done, booting the kernel.
[ 0.000000] Linux version 2.6.29-omap1 (islate@islate-desktop) (gcc version 4.3.1 (GCC) ) #1 PREEMPT Mon Jul 26 19:37:06 EDT 2010
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430 ES3.1
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
[ 0.000000] Reserving 14680064 bytes SDRAM for VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS2,115200n8 video=omapfb:vram:2M,vram:4M,mode:1024x768@60,vxres=1024,vyres=768 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
[ 0.000000] Clocking rate (Crystal/DPLL/ARM core): 26.0/166/500 MHz
[ 0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP34xx GPIO hardware version 2.5
[ 0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes)
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 128MB 128MB = 256MB total
[ 0.000000] Memory: 238848KB available (5632K code, 576K data, 204K init)
[ 0.000000] Calibrating delay loop… 511.52 BogoMIPS (lpj=1998848)
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] net_namespace: 1036 bytes
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] GPIO-156 autorequested
[ 0.000000] GPIO-159 autorequested
[ 0.000000] Found NAND on CS0
[ 0.000000] Registering NAND on CS0
[ 53.036407] OMAP DMA hardware revision 4.0
[ 53.082977] bio: create slab at 0
[ 53.146514] OMAP DSS rev 2.0
[ 53.146636] OMAP DISPC rev 3.0
[ 53.146667] OMAP VENC rev 2
[ 53.146850] OMAP DSI rev 1.0
[ 53.149993] i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
[ 53.154083] twl4030: PIH (irq 7) chaining IRQs 368…375
[ 53.154113] twl4030: power (irq 373) chaining IRQs 376…383
[ 53.154754] twl4030: gpio (irq 368) chaining IRQs 384…401
[ 53.157928] regulator: VMMC1: 1850 <–> 3150 mV normal standby
[ 53.158905] regulator: VDAC: 1800 mV normal standby
[ 53.159851] regulator: VUSB1V5: 1500 <–> 0 mV normal standby
[ 53.160797] regulator: VUSB1V8: 1800 <–> 0 mV normal standby
[ 53.161743] regulator: VUSB3V1: 3100 <–> 0 mV normal standby
[ 53.162750] regulator: VPLL2: 1800 mV normal standby
[ 53.163726] regulator: VMMC2: 2800 <–> 3150 mV normal standby
[ 53.164703] regulator: VSIM: 1800 <–> 3000 mV normal standby
[ 53.178527] i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
[ 53.194519] i2c_omap i2c_omap.3: bus 3 rev3.12 at 100 kHz
[ 53.196746] SCSI subsystem initialized
[ 53.200561] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 53.202239] usbcore: registered new interface driver usbfs
[ 53.203002] usbcore: registered new interface driver hub
[ 53.203491] usbcore: registered new device driver usb
[ 53.206848] Bluetooth: Core ver 2.14
[ 53.207427] NET: Registered protocol family 31
[ 53.207427] Bluetooth: HCI device and connection manager initialized
[ 53.207458] Bluetooth: HCI socket layer initialized
[ 53.208251] cfg80211: Using static regulatory domain info
[ 53.208282] cfg80211: Regulatory domain: US
[ 53.208312] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 53.208312] (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[ 53.208343] (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 53.208374] (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 53.208374] (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 53.208404] (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[ 53.208435] (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[ 53.208465] cfg80211: Calling CRDA for country: US
[ 53.212554] musb_hdrc: version 6.0, musb-dma, otg (peripheral+host), debug=0
[ 53.215301] musb_hdrc: USB OTG mode controller at d80ab000 using DMA, IRQ 92
[ 53.216644] NET: Registered protocol family 2
[ 53.216918] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 53.217590] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 53.217864] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 53.217987] TCP: Hash tables configured (established 8192 bind 8192)
[ 53.218017] TCP reno registered
[ 53.218322] NET: Registered protocol family 1
[ 53.222991] VFS: Disk quotas dquot_6.5.2
[ 53.223114] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 53.223785] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 53.224578] JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 53.225585] msgmni has been set to 466
[ 53.230743] alg: No test for stdrng (krng)
[ 53.230865] io scheduler noop registered
[ 53.230865] io scheduler anticipatory registered
[ 53.230895] io scheduler deadline registered
[ 53.231109] io scheduler cfq registered (default)
[ 53.257904] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 53.281433] serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
[ 53.303894] serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
[ 53.325531] serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
[ 53.325592] console [ttyS2] enabled
[ 53.857360] brd: module loaded
[ 53.867187] loop: module loaded
[ 53.871124] enc28j60 spi4.0: enc28j60 Ethernet driver 1.01 loaded
[ 53.879974] enc28j60 spi4.0: enc28j60 chip not found
[ 53.885192] enc28j60: probe of spi4.0 failed with error -5
[ 53.891845] usbcore: registered new interface driver catc
[ 53.897277] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[ 53.903686] usbcore: registered new interface driver kaweth
[ 53.909332] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[ 53.917236] usbcore: registered new interface driver pegasus
[ 53.922973] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[ 53.930267] usbcore: registered new interface driver rtl8150
[ 53.936248] usbcore: registered new interface driver asix
[ 53.942016] usbcore: registered new interface driver cdc_ether
[ 53.948242] usbcore: registered new interface driver dm9601
[ 53.954223] usbcore: registered new interface driver smsc95xx
[ 53.960296] usbcore: registered new interface driver gl620a
[ 53.966308] usbcore: registered new interface driver net1080
[ 53.972351] usbcore: registered new interface driver plusb
[ 53.978240] usbcore: registered new interface driver rndis_host
[ 53.984527] usbcore: registered new interface driver cdc_subset
[ 53.990783] usbcore: registered new interface driver zaurus
[ 53.996765] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 54.004608] Broadcom 43xx driver loaded [ Features: L, Firmware-ID: FW13 ]
[ 54.012023] usbcore: registered new interface driver zd1211rw
[ 54.018188] usbcore: registered new interface driver rtl8187
[ 54.024291] usbcore: registered new interface driver rndis_wlan
[ 54.030548] usbcore: registered new interface driver zd1201
[ 54.036560] usbcore: registered new interface driver usb8xxx
[ 54.042663] usbcore: registered new interface driver rt2500usb
[ 54.048919] usbcore: registered new interface driver rt73usb
[ 54.055023] usbcore: registered new interface driver p54usb
[ 54.060638] i2c /dev entries driver
[ 54.066284] Driver ‘sd’ needs updating - please use bus_type methods
[ 54.073059] Driver ‘sr’ needs updating - please use bus_type methods
[ 54.080688] omap2-nand driver initializing
[ 54.085113] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 256MiB 1,8V 16-bit)
[ 54.094238] cmdlinepart partition parsing not available
[ 54.099517] Creating 5 MTD partitions on “omap2-nand”:
[ 54.104736] 0x000000000000-0x000000080000 : “X-Loader”
[ 54.112304] 0x000000080000-0x000000260000 : “U-Boot”
[ 54.119598] 0x000000260000-0x000000280000 : “U-Boot Env”
[ 54.126525] 0x000000280000-0x000000680000 : “Kernel”
[ 54.134643] 0x000000680000-0x000010000000 : “File System”
[ 54.252502] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 54.259582] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 54.266326] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[ 54.274200] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 54.288909] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 54.295562] usb usb1: configuration #1 chosen from 1 choice
[ 54.301849] hub 1-0:1.0: USB hub found
[ 54.305755] hub 1-0:1.0: 3 ports detected
[ 54.312194] Initializing USB Mass Storage driver…
[ 54.317626] usbcore: registered new interface driver usb-storage
[ 54.323730] USB Mass Storage support registered.
[ 54.329254] mice: PS/2 mouse device common for all mice
[ 54.335205] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 54.344940] input: twl4030_pwrbutton as /devices/platform/i2c_omap.1/i2c-adapter/i2c-1/1-0049/twl4030_pwrbutton/input/input1
[ 55.362487] i2c_omap i2c_omap.2: controller timed out
[ 55.367675] rtc-ds1307: probe of 2-0068 failed with error -5
[ 55.375457] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 55.381805] Bluetooth: HCI UART driver ver 2.2
[ 55.386322] Bluetooth: HCI H4 protocol initialized
[ 55.391235] Bluetooth: HCI BCSP protocol initialized
[ 55.396209] Bluetooth: HCILL protocol initialized
[ 55.401000] Bluetooth: Broadcom Blutonium firmware driver ver 1.2
[ 55.407531] usbcore: registered new interface driver bcm203x
[ 55.413238] Bluetooth: Digianswer Bluetooth USB driver ver 0.10
[ 55.419555] usbcore: registered new interface driver bpa10x
[ 55.425262] Bluetooth: BlueFRITZ! USB driver ver 1.2
[ 55.430603] usbcore: registered new interface driver bfusb
[ 55.436157] Bluetooth: Generic Bluetooth USB driver ver 0.4
[ 55.442138] usbcore: registered new interface driver btusb
[ 55.447723] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 55.454681] mmci-omap-hs mmci-omap-hs.0: Failed to get debounce clock
[ 55.570312] mmci-omap-hs mmci-omap-hs.1: Failed to get debounce clock
[ 55.576904] regulator: Unable to get requested regulator: vmmc_aux
[ 55.594177] Registered led device: beagleboard::usr0
[ 55.599578] Registered led device: beagleboard::usr1
[ 55.612640] usbcore: registered new interface driver usbhid
[ 55.618377] usbhid: v2.6:USB HID core driver
[ 55.624023] Advanced Linux Sound Architecture Driver Version 1.0.18a.
[ 55.631530] usbcore: registered new interface driver snd-usb-audio
[ 55.638427] No device for DAI twl4030
[ 55.642333] No device for DAI omap-mcbsp-dai-0
[ 55.646789] No device for DAI omap-mcbsp-dai-1
[ 55.651336] No device for DAI omap-mcbsp-dai-2
[ 55.655822] No device for DAI omap-mcbsp-dai-3
[ 55.660308] No device for DAI omap-mcbsp-dai-4
[ 55.664825] OMAP3 Beagle SoC init
[ 55.668670] TWL4030 Audio Codec init
[ 55.673980] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 55.690338] ALSA device list:
[ 55.693359] #0: omap3beagle (twl4030)
[ 55.697875] oprofile: using arm/armv7
[ 55.701843] TCP cubic registered
[ 55.705169] NET: Registered protocol family 17
[ 55.709686] NET: Registered protocol family 15
[ 55.714324] Bluetooth: L2CAP ver 2.11
[ 55.718017] Bluetooth: L2CAP socket layer initialized
[ 55.723144] Bluetooth: SCO (Voice Link) ver 0.6
[ 55.727752] Bluetooth: SCO socket layer initialized
[ 55.732849] Bluetooth: RFCOMM socket layer initialized
[ 55.738098] Bluetooth: RFCOMM TTY layer initialized
[ 55.743103] Bluetooth: RFCOMM ver 1.10
[ 55.746887] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 55.752258] Bluetooth: BNEP filters: protocol multicast
[ 55.757537] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 55.764587] RPC: Registered udp transport module.
[ 55.769378] RPC: Registered tcp transport module.
[ 55.774230] lib80211: common routines for IEEE802.11 drivers
[ 55.779998] ThumbEE CPU extension supported.
[ 55.784332] Power Management for TI OMAP3.
[ 55.797760] Disabling unused clock “sr2_fck”
[ 55.802062] Disabling unused clock “sr1_fck”
[ 55.806427] Disabling unused clock “mcbsp_fck”
[ 55.810913] Disabling unused clock “mcbsp_fck”
[ 55.815399] Disabling unused clock “mcbsp_fck”
[ 55.819885] Disabling unused clock “mcbsp_ick”
[ 55.824401] Disabling unused clock “mcbsp_ick”
[ 55.828887] Disabling unused clock “mcbsp_ick”
[ 55.833374] Disabling unused clock “gpt2_ick”
[ 55.837799] Disabling unused clock “gpt3_ick”
[ 55.842193] Disabling unused clock “gpt4_ick”
[ 55.846588] Disabling unused clock “gpt5_ick”
[ 55.850982] Disabling unused clock “gpt6_ick”
[ 55.855407] Disabling unused clock “gpt7_ick”
[ 55.859832] Disabling unused clock “gpt8_ick”
[ 55.864196] Disabling unused clock “gpt9_ick”
[ 55.868621] Disabling unused clock “wdt3_ick”
[ 55.873016] Disabling unused clock “wdt3_fck”
[ 55.877441] Disabling unused clock “gpio2_dbck”
[ 55.881988] Disabling unused clock “gpio3_dbck”
[ 55.886596] Disabling unused clock “gpio4_dbck”
[ 55.891174] Disabling unused clock “gpio5_dbck”
[ 55.895751] Disabling unused clock “gpio6_dbck”
[ 55.900329] Disabling unused clock “gpt9_fck”
[ 55.904724] Disabling unused clock “gpt8_fck”
[ 55.909149] Disabling unused clock “gpt7_fck”
[ 55.913513] Disabling unused clock “gpt6_fck”
[ 55.917938] Disabling unused clock “gpt5_fck”
[ 55.922363] Disabling unused clock “gpt4_fck”
[ 55.926757] Disabling unused clock “gpt3_fck”
[ 55.931182] Disabling unused clock “gpt2_fck”
[ 55.935546] Disabling unused clock “gpt1_ick”
[ 55.939971] Disabling unused clock “wdt1_ick”
[ 55.944366] Disabling unused clock “wdt2_ick”
[ 55.948791] Disabling unused clock “wdt2_fck”
[ 55.953186] Disabling unused clock “gpio1_dbck”
[ 55.957763] Disabling unused clock “gpt1_fck”
[ 55.962188] Disabling unused clock “cam_ick”
[ 55.966522] Disabling unused clock “cam_mclk”
[ 55.970947] Disabling unused clock “des1_ick”
[ 55.975341] Disabling unused clock “sha11_ick”
[ 55.979858] Disabling unused clock “rng_ick”
[ 55.984191] Disabling unused clock “aes1_ick”
[ 55.988555] Disabling unused clock “ssi_ick”
[ 55.992889] Disabling unused clock “mailboxes_ick”
[ 55.997711] Disabling unused clock “mcbsp_ick”
[ 56.002227] Disabling unused clock “mcbsp_ick”
[ 56.006683] Disabling unused clock “gpt10_ick”
[ 56.011199] Disabling unused clock “gpt11_ick”
[ 56.015716] Disabling unused clock “hdq_ick”
[ 56.020019] Disabling unused clock “mspro_ick”
[ 56.024505] Disabling unused clock “des2_ick”
[ 56.028900] Disabling unused clock “sha12_ick”
[ 56.033416] Disabling unused clock “aes2_ick”
[ 56.037780] Disabling unused clock “icr_ick”
[ 56.042114] Disabling unused clock “pka_ick”
[ 56.046417] Disabling unused clock “ssi_ssr_fck”
[ 56.051086] Disabling unused clock “hdq_fck”
[ 56.055450] Disabling unused clock “mcbsp_fck”
[ 56.059906] Disabling unused clock “mcbsp_fck”
[ 56.064422] Disabling unused clock “mspro_fck”
[ 56.068908] Disabling unused clock “gpt11_fck”
[ 56.073394] Disabling unused clock “gpt10_fck”
[ 56.077911] Disabling unused clock “dpll4_m6x2_ck”
[ 56.082733] Disabling unused clock “dpll3_m3x2_ck”
[ 56.087585] Disabling unused clock “sys_clkout1”
[ 56.092285] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
[ 56.102325] registered taskstats version 1
[ 56.126708] Console: switching to colour frame buffer device 80x30
[ 56.143890] clock: clksel_round_rate_div: dpll4_m4_ck target_rate 48000000
[ 56.150817] clock: new_div = 9, new_rate = 48000000
[ 56.162597] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 56.169433] Waiting for root device /dev/mmcblk0p2…

Still gets stuck there !!

Hi,

I had the same problem, my SD-Card connector was broken. If you look
on the connector from the side where you put the card, on the left
side of the connector inside there is a small thing (I don't really
know how to call it) which gets in touch with the connector cover.
Connector cover is soldered to the ground. When you push the card into
the connector, this thing gets in touch with the cover and
correspondingly connected to the ground. This is the way how the
kernel detects if card is in the slot. As far as I understood, u-boot
ignores it.

Check if this thing is grounded when you have your card in.

Hope this helps,
Maksym.