Ubuntu "MMC: block number 0x1 exceeds max(0x0)" problem

I have a problem with the installation on my Beagle Rev C4(X-Loader 1.5.0 and U-Boot 2011.03-rc1-00000-g9a3cc57-dirty (Apr 04 2011 - 12:36:16))

After making sudo sh -c ‘zcat ./ubuntu-11.04-preinstalled-netbook-armel+omap.img.gz |dd bs=4M of=/dev/sdb1 ;sync’ i had a 2719387648 bytes (2.7 GB) copied ubuntu image on SDHC card.

With other sd card i upgrade my old(2009) x-loader to new by commands below:
git clone git://github.com/RobertCNelson/flash-omap.git
cd flash-omap
sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle

<i>mmc init	
fatload mmc 0:1 0x80200000 MLO
nand unlock
nand ecc hw
nandecc hw
nand erase 0 80000
nand write 0x80200000 0 20000
nand write 0x80200000 20000 20000
nand write 0x80200000 40000 20000
nand write 0x80200000 60000 20000
		
fatload mmc 0:1 0x80300000 u-boot.bin
nand unlock
nand ecc sw
nandecc sw
nand erase 80000 160000
nand write 0x80300000 80000 160000
nand erase 260000 20000        reset</i>

After that when the bootcmd is like bootcmd=if mmc rescan ${mmcdev}; then if userbutton; then setenv bootenv user.txt;fi;echo SD/MMC found on device ${mmcdev};if run loadbootenv; then ;
the result is like below:
SD/MMC found on device 0
reading uEnv.txt

** Unable to read “uEnv.txt” from mmc 0:1 **
** Bad partition 2 **
Booting from nand …

NAND read: device 0 offset 0x280000, size 0x400000
4194304 bytes read: OK
Wrong Image Format for bootm command

When i change bootcmd as setenv bootcmd ‘mmc init;fatload mmc 0 0x82000000 boot.scr;source 0x82000000’; setenv autostart yes; saveenv; boot
the result is like below:
MMC: block number 0x1 exceeds max(0x0)
** Can’t read from device 0 **
** Unable to use mmc 0:1 for fatload **
## Executing script at 82000000
Wrong image format for “source” command

Thanks, also sorry for the long message :slight_smile:

At the top, in your dd command, try specifying /dev/sdb, not /dev/sdb1. This image is likely an entire device image, not a single partition.

Chuck

thanks chuck an important point that i missed.