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

1,111 views
Skip to first unread message

mali dag

unread,
Oct 13, 2011, 9:04:55 AM10/13/11
to beagl...@googlegroups.com
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:  
cd flash-omap
sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle
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
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 :)                                                                                                          
 

Chuck Meade

unread,
Oct 13, 2011, 9:39:57 AM10/13/11
to beagl...@googlegroups.com
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

mali dag

unread,
Oct 14, 2011, 4:12:39 AM10/14/11
to beagl...@googlegroups.com
thanks chuck an important point that i missed. 



Date: Thu, 13 Oct 2011 09:39:57 -0400
From: ch...@ThePTRGroup.com
To: beagl...@googlegroups.com
Subject: Re: [beagleboard] Ubuntu "MMC: block number 0x1 exceeds max(0x0)" problem
When i change bootcmd as                  setenv bootcmd 'mmc rescan 0;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 :)                                                                                                          

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


--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
Reply all
Reply to author
Forward
0 new messages