Restore SD after copying img

move the cursor to the right, it's near the end of the "bootargs"

Regards,

This is weird. I used vi to do the edit as nano wasn’t showing me all the lines. I made a typo ‘bbtots-wifi’ instead of bbtoys-wifi, ran update_boot_files.sh and rebooted and dmesg showed bbtots-wifi. I did the correction to bbtoys-wifi and ran update_boot_files.sh again and came into this roadblock boot failure at this line:

[ 6.616821] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesysm
[ 6.628143] EXT4-fs (mmcblk0p2): write access unavailable, cannot proceed

Mark.

And the boot screen earlier on does show:

[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Beagle expansionboard: bbtoys-wifi

Mark.

Reformatted the SD and copied image then updated the ‘interfaces’ file:

ubuntu@omap:~$ sudo /etc/init.d/networking restart
[sudo] password for ubuntu:

  • Running /etc/init.d/networking restart is deprecated because it may not enabs
  • Reconfiguring network interfaces… /etc/network/interfaces:1: misplan
    ifdown: couldn’t read interfaces file “/etc/network/interfaces”
    /etc/network/interfaces:1: misplaced option
    ifup: couldn’t read interfaces file “/etc/network/interfaces”
    [fail]

Mark

After each run of the update_boot_files.sh script booting hangs at the last line (although it boots here before running the script ‘[ 10.180206] omap_i2c omap_i2c.2: controller timed out’):

ubuntu@omap:~$ sudo reboot

ubuntu@omap:~$ Broadcast message from ubuntu@omap
(/dev/ttyO2) at 15:31 …

The system is going down for reboot NOW!
[ 328.263458] Restarting system.

Texas Instruments X-Loader 1.5.0 (Jun 24 2011 - 01:31:59)
Beagle Rev C1/C2/C3
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2011.03-rc1-00000-g9a3cc57-dirty (Apr 04 2011 - 12:36:16)

OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 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 C1/C2/C3
timed out in wait_for_pin: I2C_STAT=0
No EEPROM on expansion board
Die ID #6f4a00030000000004013f790600b006
Hit any key to stop autoboot: 0
The user button is currently NOT pressed.
SD/MMC found on device 0
reading uEnv.txt

143 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc …
reading boot.scr

410 bytes read
Running boot.scr script from mmc …

Executing script at 80200000

reading uImage

3314604 bytes read
reading uInitrd

3694453 bytes read

Booting kernel from Legacy Image at 80300000 …

Image Name: 3.0.4-x3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3314540 Bytes = 3.2 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum … OK

Loading init Ramdisk from Legacy Image at 81600000 …

Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 3694389 Bytes = 3.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
Loading Kernel Image … OK
OK

Starting kernel …

Uncompressing Linux… done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.0.4-x3 (root@panda-a1-1gb) (gcc version 4.5.2 (U1
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ce
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Beagle expansionboard: bbtoys-wifi
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430/3530 ES3.0 (l2cache iva sgx neon isp )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0ba9000 s7712 r8192 d12768 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pa6
[ 0.000000] Kernel command line: console=ttyO2,115200n8 console=tty0 root=/do
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 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] allocated 1048576 bytes of page_cgroup
[ 0.000000] please try ‘cgroup_disable=memory’ option if you don’t want memos
[ 0.000000] Memory: 238MB = 238MB total
[ 0.000000] Memory: 226908k/226908k available, 35236k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0061000 ( 356 kB)
[ 0.000000] .text : 0xc0061000 - 0xc086dc78 (8244 kB)
[ 0.000000] .data : 0xc086e000 - 0xc08e1290 ( 461 kB)
[ 0.000000] .bss : 0xc08e12b4 - 0xc09a5110 ( 784 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, 1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:410
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrups
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] omap_hwmod: gpt12_fck: missing clockdomain for gpt12_fck.
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 1s
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000823] Calibrating delay loop… 490.52 BogoMIPS (lpj=1916928)
[ 0.038635] pid_max: default: 32768 minimum: 301
[ 0.038879] Security Framework initialized
[ 0.038970] AppArmor: AppArmor initialized
[ 0.039276] Mount-cache hash table entries: 512
[ 0.040222] Initializing cgroup subsys cpuacct
[ 0.040283] Initializing cgroup subsys memory
[ 0.040374] Initializing cgroup subsys devices
[ 0.040405] Initializing cgroup subsys freezer
[ 0.040557] CPU: Testing write buffer coherency: ok
[ 0.040924] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 countee
[ 0.042053] Brought up 1 CPUs
[ 0.042083] SMP: Total of 1 processors activated (490.52 BogoMIPS).
[ 0.042846] devtmpfs: initialized
[ 0.047088] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_core
[ 0.047149] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_per
[ 0.047180] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_wkup
[ 0.062805] omap_hwmod: i2c1: softreset failed (waited 10000 usec)
[ 0.077117] omap_hwmod: i2c2: softreset failed (waited 10000 usec)
[ 0.091430] omap_hwmod: i2c3: softreset failed (waited 10000 usec)
[ 0.093200] print_constraints: dummy:
[ 0.093597] NET: Registered protocol family 16
[ 0.093872] GPMC revision 5.0
[ 0.095458] OMAP GPIO hardware version 2.5
[ 0.095733] OMAP GPIO hardware version 2.5
[ 0.096008] OMAP GPIO hardware version 2.5
[ 0.096252] OMAP GPIO hardware version 2.5
[ 0.096527] OMAP GPIO hardware version 2.5
[ 0.096771] OMAP GPIO hardware version 2.5
[ 0.097717] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.099060] OMAP3 Beagle Rev: C1/C2/C3
[ 0.102020] Beagle expansionboard: registering wl12xx bt platform device
[ 0.102203] Beagle expansionboard: registering wl12xx wifi platform device
[ 0.104553] Found NAND on CS0
[ 0.104583] Registering NAND on CS0
[ 0.104949] Unable to get DVI reset GPIO
[ 0.105041] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.108825] OMAP DMA hardware revision 4.0
[ 0.118652] bio: create slab at 0
[ 0.119628] machine_constraints_voltage: vwl1271: failed to apply 1850000uV t
[ 0.119812] reg-fixed-voltage reg-fixed-voltage.1: Failed to register regula2
[ 0.119873] reg-fixed-voltage: probe of reg-fixed-voltage.1 failed with erro2
[ 0.120758] SCSI subsystem initialized
[ 0.122436] usbcore: registered new interface driver usbfs
[ 0.122589] usbcore: registered new interface driver hub
[ 0.122863] usbcore: registered new device driver usb
[ 0.138854] omap_i2c omap_i2c.1: bus 1 rev3.12 at 2600 kHz
[ 0.142242] twl4030: PIH (irq 7) chaining IRQs 368…375
[ 0.142333] twl4030: power (irq 373) chaining IRQs 376…383
[ 0.142944] twl4030: gpio (irq 368) chaining IRQs 384…401
[ 0.147003] print_constraints: VUSB1V5: 1500 mV normal standby
[ 0.147552] print_constraints: VUSB1V8: 1800 mV normal standby
[ 0.148071] print_constraints: VUSB3V1: 3100 mV normal standby
[ 0.152832] twl4030_usb twl4030_usb: Initialized TWL4030 USB module
[ 0.153747] print_constraints: VMMC1: 1850 <–> 3150 mV at 3000 mV normal sty
[ 0.154388] print_constraints: VDAC: 1800 mV normal standby
[ 0.154937] print_constraints: VDVI: 1800 mV normal standby
[ 0.155609] print_constraints: VSIM: 1800 <–> 3000 mV at 1800 mV normal stay
[ 0.169647] omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
[ 0.184997] omap_i2c omap_i2c.3: bus 3 rev3.12 at 100 kHz
[ 0.186279] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.187164] NetLabel: Initializing
[ 0.187194] NetLabel: domain hash size = 128
[ 0.187225] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.187316] NetLabel: unlabeled traffic allowed by default
[ 0.187713] Switching to clocksource 32k_counter
[ 0.192901] Switched to NOHz mode on CPU #0
[ 0.207611] AppArmor: AppArmor Filesystem Enabled
[ 0.222808] musb-hdrc: version 6.0, musb-dma, otg (peripheral+host)
[ 0.223449] musb-hdrc musb-hdrc: USB OTG mode controller at fa0ab000 using D2
[ 0.224182] NET: Registered protocol family 2
[ 0.224639] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.225952] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.226226] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.226470] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.226501] TCP reno registered
[ 0.226531] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 0.226593] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 0.227325] NET: Registered protocol family 1
[ 0.228515] RPC: Registered named UNIX socket transport module.
[ 0.228546] RPC: Registered udp transport module.
[ 0.228576] RPC: Registered tcp transport module.
[ 0.228607] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.228973] Trying to unpack rootfs image as initramfs…
[ 0.712860] Freeing initrd memory: 3604K
[ 0.713989] PMU: registered new PMU device of type 0
[ 0.714477] omap_dsp_init: 600000 bytes @ 8ee00000
[ 0.715393] audit: initializing netlink socket (disabled)
[ 0.715515] type=2000 audit(0.710:1): initialized
[ 0.915069] VFS: Disk quotas dquot_6.5.2
[ 0.915618] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.920928] Registering unionfs 2.5.9 (for 2.6.39-rc5)
[ 0.922851] fuse init (API version 7.16)
[ 0.924865] Btrfs loaded
[ 0.924926] msgmni has been set to 450
[ 0.926849] Block layer SCSI generic (bsg) driver version 0.4 loaded (major )
[ 0.926910] io scheduler noop registered
[ 0.926940] io scheduler deadline registered
[ 0.927093] io scheduler cfq registered (default)
[ 0.984954] OMAP DSS rev 2.0
[ 0.987426] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.989044] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
[ 0.989379] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
[ 0.989654] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
[ 1.849670] console [ttyO2] enabled
[ 1.861968] brd: module loaded
[ 1.869354] loop: module loaded
[ 1.876007] omap2-nand driver initializing
[ 1.880706] ONFI flash detected
[ 1.884338] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xba (Micron NAND 2)
[ 1.893493] Creating 5 MTD partitions on “omap2-nand.0”:
[ 1.899169] 0x000000000000-0x000000080000 : “X-Loader”
[ 1.906433] 0x000000080000-0x000000260000 : “U-Boot”
[ 1.913848] 0x000000260000-0x000000280000 : “U-Boot Env”
[ 1.920776] 0x000000280000-0x000000680000 : “Kernel”
[ 1.928955] 0x000000680000-0x000010000000 : “File System”
[ 2.038330] OneNAND driver initializing
[ 2.043060] usbcore: registered new interface driver cdc_ether
[ 2.049377] usbcore: registered new interface driver rndis_host
[ 2.055664] cdc_ncm: 01-June-2011
[ 2.059265] usbcore: registered new interface driver cdc_ncm
[ 2.065704] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 4.086425] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 4.092712] ehci-omap ehci-omap.0: new USB bus registered, assigned bus numb1
[ 4.100769] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 4.117553] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 4.124542] hub 1-0:1.0: USB hub found
[ 4.128601] hub 1-0:1.0: 3 ports detected
[ 4.156799] Initializing USB Mass Storage driver…
[ 4.162109] usbcore: registered new interface driver usb-storage
[ 4.168487] USB Mass Storage support registered.
[ 4.177154] g_ether gadget: using random self ethernet address
[ 4.183410] g_ether gadget: using random host ethernet address
[ 4.190856] usb0: MAC ae:a7:d0:e0:29:b7
[ 4.194915] usb0: HOST MAC a6:ed:0a:3d:04:4b
[ 4.199523] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 4.206542] g_ether gadget: g_ether ready
[ 4.210784] musb-hdrc musb-hdrc: MUSB HDRC host driver
[ 4.216613] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number2
[ 4.225097] hub 2-0:1.0: USB hub found
[ 4.229187] hub 2-0:1.0: 1 port detected
[ 4.234069] mousedev: PS/2 mouse device common for all mice
[ 4.240997] input: twl4030_pwrbutton as /devices/platform/omap/omap_i2c.1/i20
[ 4.253021] i2c /dev entries driver
[ 4.257476] lirc_dev: IR Remote Control driver registered, major 250
[ 4.264984] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 4.272369] device-mapper: uevent: version 1.0.3
[ 4.278015] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-m
[ 4.287567] device-mapper: multipath: version 1.3.0 loaded
[ 4.293426] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 4.300964] cpuidle: using governor ladder
[ 4.305358] cpuidle: using governor menu
[ 4.309570] sdhci: Secure Digital Host Controller Interface driver
[ 4.316131] sdhci: Copyright© Pierre Ossman
[ 4.325927] usbcore: registered new interface driver snd-usb-6fire
[ 4.334136] OMAP3 Beagle/Devkit8000 SoC init
[ 4.398712] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[ 4.405822] ALSA device list:
[ 4.409057] #0: omap3beagle
[ 4.413848] TCP cubic registered
[ 4.418640] NET: Registered protocol family 10
[ 4.427551] NET: Registered protocol family 17
[ 4.432800] Registering the dns_resolver key type
[ 4.437866] VFP support v0.3: implementor 41 architecture 3 part 30 variant 1
[ 4.446044] ThumbEE CPU extension supported.
[ 4.450592] Registering SWP/SWPB emulation handler
[ 4.460235] sr_init: No PMIC hook to init smartreflex
[ 4.465911] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver inid
[ 4.474334] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver inid
[ 4.482757] SmartReflex Class3 initialized
[ 4.494964] clock: disabling unused clocks to save power
[ 4.501739] registered taskstats version 1
[ 4.506347] fbcvt: 1280x720@60: CVT Name - .921M9-R
[ 4.534606] Console: switching to colour frame buffer device 160x45
[ 4.554290] regulator_init_complete: VDAC: incomplete constraints, leaving on
[ 4.562164] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 4.569335] Freeing init memory: 356K
[ 4.724945] mmc0: new SDHC card at address e624
[ 4.735046] mmcblk0: mmc0:e624 SU08G 7.40 GiB (ro)
[ 4.748992] mmcblk0: p1 p2
[ 4.790039] udev[71]: starting version 167
[ 6.527221] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. )
[ 10.180206] omap_i2c omap_i2c.2: controller timed out

Mark.

So it looks like the patch i have for the bbtoys-wifi adapter isn't
enough, i wouldn't be able to fix it till i get hardware when it goes
back on sale..

Regards,

What does update_boot_files.sh do?

Mark.

"cat update_boot_files.sh" for details..

It creates a boot.scr from a boot.cmd..

Regards,

And this ‘buddy=bbtoys-wifi’ tells boot.scr to load the driver? Where is the driver info located/read from?

Mark.

The board file..

https://github.com/RobertCNelson/stable-kernel/blob/master/patches/sakoman/3.0.0/0029-OMAP3-beagle-add-support-for-expansionboards.patch#L325

Regards,

I don’t know about these things (real novice programmer). As the error message isn’t thrown after setting the wl12xx data I assume that line executed OK. Is it possible to throw messages if these fail:
(1) ‘platform_device_register(&wl12xx_device);’
(2) ‘platform_device_register(&omap_vwlan_device);’
even if we don’t know why the failure?

Is the device info on ROM on the card?

Mark.

Robert,

I’m wondering if my problem may be with the security key setting. I’m using WEP and the auto interface is for WPA. I wonder if it hangs the system trying to log on? What would be the WEP info for the file?

Thanks.

Mark.

Not likely.. Before it's a WEP key problem, it would first have to
show up as a valid wifi device under "ifconfig -a"..

Right now, based on your testing, it looks as thou the angstrom kernel
is the only kernel that properly supports the bbtoys-wifi device..

Regards,

That makes sense. I came across this post and code in the list, which was taken from Angstron and configured for Android. Is this something compiled in the kernel or something that can be added to the boot sequence?

"I took a quick stab at implementing support for the bbtoys-wifi
(wl1271/ls240) board in the 2.6.37 kernel that comes from Devkit 2.1
Gingerbread. I’ve attached the patch. Basically, I took the code from
2.6.39 on Angstrom and changed the regulators and mmcbbt stuff until
it sort of works on 2.6.37.

"It doesn’t work correctly though, the wlan0 interface shows up but
there are some OCR errors. Probably some mistake in how I’ve defined
the fixed voltage regulator (the CONFIG fixed voltage regulator is
definitely enabled). In theory, it shouldn’t be trying to turn on/off
the voltage since the bbtoys-wifi board has alway-on 1.8V and 3.3V
which is what it uses for the LS240. If anyone else wants to fix it
up, hope this code is useful as a starting point.

“Thanks,
jaya”

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index f77343b..ad7047a 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -193,6 +193,81 @@ fail0:
 	return;
 }
 
+char expansionboard_name[16];