Here's what I have done so far:
- Downloaded Image:
http://downloads.plugpbx.org/betaimageDec22-dhcpfixed4G.img.bz2 - Verified md5 checksum to be correct for the image betaimageDec22-dhcpfixed4G.img = 4c990e3c49045a397291bca61ba01659
- Used dd if=betaimageDec22-dhcpfixed4G.img of=/dev/sdb to write-out the ~3GB image to a 8GB SD card
dd output is the following: dd: writing to `/dev/sdb': Input/output error
6173945+0 records in
6173944+0 records out
3161059328 bytes (3.2 GB) copied, 3027.19 s, 1.0 MB/s
Note 1: I had downloaded the image a few times and had verified the md5 checksum to be correct as per the download site. Used dd on linux & mac osx to write out the image to the card but all attempts yielded similar error/output.
Note 2: Even though 'dd' in/out records are different, I am able to mount both ext2 partitions & access the filesystems/files: (/dev/sdb1) & the root (/dev/sdb2)
4. I had also tried using fdisk to create partitions and then set them of the correct type (83). The pbxforum has some discrepancy about whether
or not the first/boot parition should be FAT16 or EXT2 partition. I had tried both; neither worked. I am running the latest uBoot (
U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26). I believe the latest uBoot allows for booting the kernel from an ext2 partition.
Here is the fdisk -l betaimageDec22-dhcpfixed4G.img
fdisk -l betaimageDec22-dhcpfixed4G.img
You must set cylinders.
You can do this from the extra functions menu.
Disk betaimageDec22-dhcpfixed4G.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00072ced
Device Boot Start End Blocks Id System
betaimageDec22-dhcpfixed4G.img1 * 1 28 224878+ 83 Linux
betaimageDec22-dhcpfixed4G.img2 29 471 3558397+ 83 Linux
betaimageDec22-dhcpfixed4G.img3 472 499 224910 5 Extended
betaimageDec22-dhcpfixed4G.img5 472 499 224878+ 82 Linux swap / Solaris
5. Interesting uBoot environment:
db_init=setenv mainlineLinux yes; setenv arcNumber 2659; usb start
x_bootcmd_kernel=fatload usb 1:1 0x6400000 uImage
x_bootargs_root=root /dev/sdb2 rootdelay=10
_____________________________________________________________________________________
I think the problem could be one of the following:
corrupted betaimageDec22-dhcpfixed4G.img image
uBoot environment variable incorrect/incomplete. I have seen the following uBoot env. variable to have different values to enable external SD booting:
setenv x_bootcmd_kernel mw 1x6400000 0 1000; fatload usb 2 1x6400000 uImage versus
setenv x_bootcmd_kernel mw 0x6400000 0 1000; fatload usb 1:1 0x6400000 uImage
I am not sure if the "loadaddr" should be 0x6400000 or 1x6400000. Also, since we're trying to boot the the external SD card's 1st partition, should we be using the "usb 1:1" (ie: 2nd usb device since usb0 is the first device and 1st partition)
Can anyone who has gotten this stuff working upload the following:
1) a working plugpbx image for the dreamplug
2) Working uBoot environment variables.
It'll save me and hopefully lotsa other folks the heartache that I went/am still going through.
-g