OpenWrt Forum Archive

Topic: openwrt on beagleboard xm rev C

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I just installed openwrt on my bbxm
I have follow this link
wiki.openwrt.org/toh/texas.instruments/beagleboard

but seems it block here in the kernel
[    4.130187] mmc0: error -110 whilst initialising SD card

the led of microsd flash.

Here that is full message terminal from startup

U-Boot SPL 2015.10 (Feb 05 2017 - 12:06:41)
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 2015.10 (Feb 05 2017 - 12:06:41 +0000)

OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

Beagle xM Rev C
No EEPROM on expansion board
Die ID #789600029ff80000016849a903014014
Net:   usb_ether
Error: usb_ether address not set.

Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
gpio: pin 173 (gpio 173) value is 0
gpio: pin 4 (gpio 4) value is 0
SD/MMC found on device 0
reading uEnv.txt
486 bytes read in 4 ms (118.2 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading openwrt-omap-zImage
2724176 bytes read in 170 ms (15.3 MiB/s)
reading omap3-beagle-xm.dtb
63252 bytes read in 9 ms (6.7 MiB/s)
Kernel image @ 0x80200000 [ 0x000000 - 0x299150 ]
## Flattened Device Tree blob at 80f80000
   Booting using the fdt blob at 0x80f80000
   Using Device Tree in place at 80f80000, end 80f92713

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.14 (embeddedburn@embeddedburn-VirtualBox) (gcc version 5.3.0 (OpenWrt GCC 5.3.0 50104)7
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: TI OMAP3 BeagleBoard xM
[    0.000000] cma: Reserved 16 MiB at 0x9ec00000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 130560
[    0.000000] free_area_init_node: node 0, pgdat c080ebf0, node_mem_map de800000
[    0.00000es used for memmap
00]   Normal zone: 130560 pages, LIFO batch:31
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129536
[    0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw ext2 rootwait verbose debug
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 486128K/522240K available (5539K kernel code, 375K rwdata, 2364K rodata, 280K init, 6072K bss, 1)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07bfe94   (7904 kB)
[    0.000000]       .init : 0xc07c0000 - 0xc0806000   ( 280 kB)
[    0.000000]       .data : 0xc0806000 - 0xc0863cf8   ( 376 kB)
[    0.000000]        .bss : 0xc0863cf8 - 0xc0e51ea0   (6073 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[    0.000000] OMAP clockevent source: timer1 at 32768 Hz
[    0.000000] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[    0.000030] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[    0.000030] OMAP clocksource: 32k_counter at 32768 Hz
[    0.000457] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[    0.000457] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000488] ... MAX_LOCK_DEPTH:          48
[    0.000488] ... MAX_LOCKDEP_KEYS:        8191
[    0.000488] ... CLASSHASH_SIZE:          4096
[    0.000518] ... MAX_LOCKDEP_ENTRIES:     32768
[    0.000518] ... MAX_LOCKDEP_CHAINS:      65536
[    0.000518] ... CHAINHASH_SIZE:          32768
[    0.000549]  memory used by lock dependency info: 5151 kB
[    0.000549]  per task-struct memory footprint: 1536 bytes
[    0.000579] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.117279] pid_max: default: 32768 minimum: 301
[    0.117462] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.117492] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.118774] CPU: Testing write buffer coherency: ok
[    0.119506] Setting up static identity map for 0x80008200 - 0x80008258
[    0.176635] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.226013] omap_hwmod: mcbsp2_sidetone using broken dt data from mcbsp
[    0.227478] omap_hwmod: mcbsp3_sidetone using broken dt data from mcbsp
[    0.319610] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.321014] pinctrl core: initialized pinctrl subsystem
[    0.326263] NET: Registered protocol family 16
[    0.329071] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.331726] cpuidle: using governor ladder
[    0.331787] cpuidle: using governor menu
[    0.332458] Reprogramming SDRC clock to 400000000 Hz
[    0.341979] omap_gpio 48310000.gpio: could not find pctldev for node /ocp/l4@48000000/scm@2000/pinmux@a00/pinmux_gpie
[    0.343444] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[    0.344360] OMAP GPIO hardware version 2.5
[    0.345642] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[    0.347839] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[    0.349853] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[    0.351837] gpiochip_add: registered GPIOs 128 to 159 on device: gpio
[    0.354125] irq: no irq domain found for /ocp/l4@48000000/scm@2000/pinmux@30 !
[    0.372894] omap-gpmc 6e000000.gpmc: GPMC revision 5.0
[    0.373016] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[    0.375030] platform 48058000.ssi-controller: Cannot lookup hwmod 'ssi'
[    0.384124] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[    0.384155] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[    0.385284] OMAP DMA hardware revision 5.0
[    0.462280] omap-dma-engine 48056000.dma-controller: OMAP DMA engine driver
[    0.464019] of_get_named_gpiod_flags: parsed 'gpio' property of node '/hsusb2_power_reg[0]' - status (-517)
[    0.469207] SCSI subsystem initialized
[    0.483489] libata version 3.00 loaded.
[    0.488464] omap_i2c 48070000.i2c: bus 0 rev4.4 at 2600 kHz
[    0.490295] omap_i2c 48072000.i2c: bus 1 rev4.4 at 400 kHz
[    0.491699] omap_i2c 48060000.i2c: bus 2 rev4.4 at 100 kHz
[    0.492218] pps_core: LinuxPPS API ver. 1 registered
[    0.492248] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.492309] PTP clock support registered
[    0.492889] Advanced Linux Sound Architecture Driver Initialized.
[    0.494995] clocksource: Switched to clocksource 32k_counter
[    0.499572] NET: Registered protocol family 2
[    0.500823] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.500946] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[    0.502044] TCP: Hash tables configured (established 4096 bind 4096)
[    0.502166] UDP hash table entries: 256 (order: 2, 20480 bytes)
[    0.502349] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[    0.503082] NET: Registered protocol family 1
[    0.510894] RPC: Registered named UNIX socket transport module.
[    0.510925] RPC: Registered udp transport module.
[    0.510925] RPC: Registered tcp transport module.
[    0.510955] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.519317] futex hash table entries: 256 (order: 1, 11264 bytes)
[    0.519470] audit: initializing netlink subsys (disabled)
[    0.519653] audit: type=2000 audit(0.510:1): initialized
[    0.550567] VFS: Disk quotas dquot_6.6.0
[    0.551055] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.556213] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.561462] NFS: Registering the id_resolver key type
[    0.561706] Key type id_resolver registered
[    0.561706] Key type id_legacy registered
[    0.561889] jffs2: version 2.2 (NAND) (SUMMARY) (LZO) (LZMA) (RTIME) (RUBIN) (CMODE_PRIORITY) (c) 2001-2006 Red Hat,.
[    0.569824] io scheduler noop registered
[    0.569854] io scheduler deadline registered (default)
[    0.572418] pinctrl-single 48002030.pinmux: 284 pins at pa fa002030 size 568
[    0.572937] pinctrl-single 48002a00.pinmux: 46 pins at pa fa002a00 size 92
[    0.574005] pinctrl-single 480025a0.pinmux: 46 pins at pa fa0025a0 size 92
[    0.579101] 48050000.dss supply vdda_video not found, using dummy regulator
[    0.579437] OMAP DSS rev 2.0
[    0.579742] omapdss_dss 48050000.dss: bound 48050400.dispc (ops dispc_component_ops)
[    0.579925] omapdss_dss 48050000.dss: bound 48050c00.encoder (ops venc_component_ops)
[    0.581207] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/encoder@0[0]' - status (-517)
[    0.581237] tfp410 encoder@0: failed to parse PD gpio
[    0.582122] connector-dvi connector@0: failed to find video source
[    0.588439] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.591552] omap_uart 4806a000.serial: no wakeirq for uart0
[    0.591583] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@4806a000[0]'
[    0.591796] 4806a000.serial: ttyO0 at MMIO 0x4806a000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[    0.592590] omap_uart 4806c000.serial: no wakeirq for uart1
[    0.592620] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@4806c000[0]'
[    0.592712] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 89, base_baud = 3000000) is a OMAP UART1
[    0.593566] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@49020000[0]'
[    0.593658] 49020000.serial: ttyO2 at MMIO 0x49020000 (irq = 90, base_baud = 3000000) is a OMAP UART2
[    1.477020] console [ttyO2] enabled
[    1.481781] omap_uart 49042000.serial: no wakeirq for uart3
[    1.487670] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@49042000[0]'
[    1.497619] 49042000.serial: ttyO3 at MMIO 0x49042000 (irq = 96, base_baud = 3000000) is a OMAP UART3
[    1.543975] brd: module loaded
[    1.565948] loop: module loaded
[    1.589752] twl 0-0048: PIH (irq 23) chaining IRQs 307..315
[    1.595794] twl 0-0048: power (irq 312) chaining IRQs 315..322
[    1.653198] twl4030_gpio twl4030-gpio: gpio (irq 307) chaining IRQs 323..340
[    1.661285] gpiochip_find_base: found new base at 492
[    1.666931] gpiochip_add: registered GPIOs 492 to 511 on device: twl4030
[    1.723632] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.748657] twl_rtc 48070000.i2c:twl@48:rtc: Power up reset detected.
[    1.755645] twl_rtc 48070000.i2c:twl@48:rtc: Enabling TWL-RTC
[    1.764953] twl_rtc 48070000.i2c:twl@48:rtc: rtc core: registered 48070000.i2c:twl@48 as rtc0
[    1.775207] i2c /dev entries driver
[    1.782897] omap_wdt: OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[    1.796264] omap_hsmmc 4809c000.mmc: GPIO lookup for consumer cd
[    1.802551] omap_hsmmc 4809c000.mmc: using device tree for GPIO lookup
[    1.809448] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@4809c000[0]'
[    1.819030] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@4809c000[0]'
[    1.828491] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup
[    1.835571] omap_hsmmc 4809c000.mmc: lookup for GPIO cd failed
[    1.841674] omap_hsmmc 4809c000.mmc: GPIO lookup for consumer wp
[    1.847961] omap_hsmmc 4809c000.mmc: using device tree for GPIO lookup
[    1.854797] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@4809c000[0]'
[    1.864349] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@4809c000[0]'
[    1.873840] omap_hsmmc 4809c000.mmc: using lookup tables for GPIO lookup
[    1.880859] omap_hsmmc 4809c000.mmc: lookup for GPIO wp failed
[    1.926513] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/heartbeat[0]' - status (0)
[    1.937042] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/mmc[0]' - status (0)
[    1.947631] leds_pwm pwmleds: unable to request PWM for beagleboard::pmu_stat: -517
[    1.956207] ledtrig-cpu: registered to indicate activity on CPUs
[    1.970825] of_get_named_gpiod_flags: can't parse 'ti,jack-det-gpio' property of node '/sound[0]'
[    1.980926] of_get_named_gpiod_flags: can't parse 'ti,hs_extmute_gpio' property of node '/ocp/i2c@48070000/twl@48/au'
[    2.088897] omap-twl4030 sound: twl4030-hifi <-> 49022000.mcbsp mapping ok
[    2.108398] NET: Registered protocol family 10
[    2.118438] NET: Registered protocol family 17
[    2.123168] NET: Registered protocol family 15
[    2.128143] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_net.
[    2.141571] 8021q: 802.1Q VLAN Support v1.8
[    2.146118] Key type dns_resolver registered
[    2.150878] omap2_set_init_voltage: unable to find boot up OPP for vdd_mpu_iva
[    2.158477] omap2_set_init_voltage: unable to set vdd_mpu_iva
[    2.164489] omap2_set_init_voltage: unable to find boot up OPP for vdd_core
[    2.171783] omap2_set_init_voltage: unable to set vdd_core
[    2.184692] ThumbEE CPU extension supported.
[    2.189270] Registering SWP/SWPB emulation handler
[    2.194305] SmartReflex Class3 initialized
[    2.203430] gpiochip_add: registered GPIOs 160 to 191 on device: gpio
[    2.211608] of_get_named_gpiod_flags: parsed 'gpio' property of node '/hsusb2_power_reg[0]' - status (0)
[    2.224334] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/encoder@0[0]' - status (0)
[    2.236114] leds_pwm pwmleds: unable to request PWM for beagleboard::pmu_stat: -517
[    2.247070] twl_rtc 48070000.i2c:twl@48:rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    2.257049] sr_init: No PMIC hook to init smartreflex
[    2.262695] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
[    2.271270] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
[    2.311065] leds_pwm pwmleds: unable to request PWM for beagleboard::pmu_stat: -517
[    2.320007] VAUX3: disabling
[    2.324645] VDAC: disabling
[    2.328430] VUSB3V1: disabling
[    2.331970] VPLL2: disabling
[    2.335357] hsusb2_vbus: disabling
[    2.339385] ALSA device list:
[    2.342498]   #0: omap3beagle
[    2.347076] Waiting for root device /dev/mmcblk0p2...
[    4.125640] mmc0: card never left busy state
[    4.130187] mmc0: error -110 whilst initialising SD card
[  110.145782] random: nonblocking pool is initialized

I'm sorry
It was my sd card damaged

I'm sorry i have no idea about your problem, but i really need your help for intalling openwrt on my beaglebone black. I've made 2 partitions on my SD card, the first partition(FAT32) consists of MLO u-boot.img eEnv.txt zImage am335x-boneblack.dtb, and the second partition(ext4) is the rootfs. All files above were downloaded from

downloads.openwrt.org/snapshots/trunk/omap/generic 

But when i insert SD card and boot from it, the log from UART shows that, boot-up flow stopped at

Starting kernel ...

I doubt that the zImage file on that website may not really support BBB, so i need another guidance to install openwrt. You're the first one i've ever seen who claim to install openwrt on Beagleboard successfully, do you have any idea about my problem? or do you have some weblinks for guidance or files about it? How do you succeed? Thank you very much!

The discussion might have continued from here.