Hi I had the same problem and fixed it with that script that I
made ::::::
I had to run the script two times ?? I'm checking that right now. I
think that for example if I run it with first partition ended to 50 it
failed and 51 (echo 51 fdisk option ) it passed. I was doing some test
with it and it seem that if I change to 50 try into beagle it failed,
change to 51 try it to beagle it failed and rerun the script with 51,
try it to beagle it works. I think that I have a bad understanding of
fdisk. I mean that if I change the partition size then remount should
I do a sync or something different before remounting... If I found the
problem I will tell you.
I post those details in that post but I don't now why it is not
publish yet?
http://groups.google.com/group/beagleboard/browse_thread/thread/472abb7bf6e87b8e/839d70f87b6f244d?lnk=gst&q=latest+u-boot#
That script help me to run on the SD musb_gadget-u-boot.bin by holding
USER button to switch to MMC boot mode.
I download files from
http://code.google.com/p/beagleboard/downloads/list
#!/bin/sh
# Environment variables
SD_PATH="/dev/mmcblk0"
SD_P1_PATH="/dev/mmcblk0p1"
SD_P2_PATH="/dev/mmcblk0p2"
# SD validation.
SD_INSERT="SD insert test: "
if [ -e $SD_PATH ]
then
echo "--> ${SD_INSERT} OK"
else
echo "--> ${SD_INSERT} FAILED"
echo "--> SD not inserted!"
exit $?
fi
# Mount validation for p1.
MOUNT_P1="SD P1 mount test: "
if [ -n "`mount | grep /dev/mmcblk0p1`" ]
then
echo "--> ${MOUNT_P1} FAILED"
echo "--> sudo umount ${SD_P1_PATH}"
sudo umount $SD_P1_PATH
else
echo "--> ${MOUNT_P1} OK"
fi
# Mount validation for p1.
MOUNT_P2="SD P2 mount test: "
if [ -n "`mount | grep /dev/mmcblk0p2`" ]
then
echo "--> ${MOUNT_P2} FAILED"
echo "--> sudo umount ${SD_P2_PATH}"
sudo umount $SD_P2_PATH
else
echo "--> ${MOUNT_P2} OK"
fi
# Disk /dev/mmcblk0: 1977 MB, 1977614336 bytes
# 1977614336/255/63/512 = 240.431248055 = FLOOR = 240
# Create partition backup: sfdisk -H 255 -S 63 -C 240 --d /dev/mmcblk0
> sd-beagleboard-partition.out
# Create partition
# echo "--> Create SD partition: sfdisk -H 255 -S 63 -C 240 --force /
dev/mmcblk0 < sd-beagleboard-partition.out"
# sfdisk -H 255 -S 63 -C 240 --force /dev/mmcblk0 < sd-beagleboard-
partition.out
fdiskCommands()
{
echo d
echo 1
echo d
echo 2
echo n
echo p
echo 1
echo
echo 51
echo t
echo c
echo a
echo 1
echo n
echo p
echo 2
echo
echo
echo t
echo 2
echo 83
echo w
}
echo "--> Create partitions on SD card."
fdiskCommands | fdisk -C 240 -H 255 -S 63 /dev/mmcblk0
# Format the partitions
echo "--> Format SD P1 into FAT32: sudo mkfs.msdos -F 32 /dev/
mmcblk0p1 -n boot"
sudo mkfs.msdos -F 32 /dev/mmcblk0p1 -n boot
echo "--> Format SD P2 into ext3: sudo mkfs.ext3 -L rootfs /dev/
mmcblk0p2"
sudo mkfs.ext3 -L rootfs /dev/mmcblk0p2
# Mount newly formated partition:
echo "--> Mount newly formated partition"
sudo mount /dev/mmcblk0p1 /mnt/boot
sudo mount /dev/mmcblk0p2 /mnt/rootfs
# IMPORTANT TO DO THIS BEFORE ANY OTHER FILES ARE COPIED:
# Copy the MLO file that you downloaded to the Beagle_Boot partition.
# The MLO file must be the first file copied to the partition after re-
formatting.
echo "--> Copy MLO to boot partition."
sudo cp /home/kapare/beagleboard/sd/boot/MLO_restore /mnt/boot/MLO
echo "--> Copy u-boot to boot partition."
# sudo cp /home/kapare/beagleboard/sd/boot/u-boot.bin_autoflash /mnt/
boot/u-boot.bin
sudo cp /home/kapare/beagleboard/sd/boot/musb_gadget-u-boot.bin /mnt/
boot/u-boot.bin
echo "--> umount partitions."
sync
sudo umount /dev/mmcblk0p1 /dev/mmcblk0p2
On Jan 29, 5:38 am, maxime louvel <
m.lou...@gmail.com> wrote:
> Hi,
>
> I'm not really sure I have understood where is your pb :
> - you can't boot anything ?
> - when you boot the uboot on your SD card that doesn't work ?
> - something else ??
>
> For the first pb you can try to boot from the serial port and reflash your
> NAND from there, you can follow the explanation on :
http://github.com/nmenon/omap-u-boot-utils/tree/master
>
> for the second, are you sure you have built correctly the last uboot version
> and signed it ?
>
> for the 3rd,sorry If this was useless to you
>
> cheers,
>
> Maxime
>
> On Thu, Jan 29, 2009 at 11:17 AM, Laurent BOIREAU <
laurent.boir...@gmail.com
>
>
>
> > wrote:
> > Hi, I have bricked my beagle board trying to install musb gadget u-boot in
> > NAND.
>
> > Recovery from SD card doesn't work, no matter what I do, following
> >
http://elinux.org/BeagleBoardRecovery. I don't even get the ....40T......
> > string on minicom (1152008N1, on /dev/ttyUSB0 using FTDI serial USB
> > converter). I tried pressing user button on powerup, using USB or DC supply
> > power, etc .. to no avail. Previously working SDcards don't work anymore,
> > and reformatting from scratch, using MLO_restore written first on the SD,
> > etc .. doesn't work either. Hence I'm left with USB recovery. That, at
> > least, seems to work for first step : getting U-boot V2 prompt. I can
> > download the enclosed uboot.bin file (binary from
> >
http://groups.google.com/group/beagleboard/browse_thread/thread/be194...,
> > following the link on beagle recovery page). I get u-boot prompt, but can't
> > upload u-boot (V1) via UART as indicated in the tutorial.
> > First, help command doesn't work. Second, loadb works, with option -f
> > instead of -d. Probably a slightly different version. I then get stuck
> > trying to upload u-boot.bin (V1) via minicom and kermit (installed both
> > gkermit and ckermit). When I lauch the ctrl-A S command, selecting kermit
> > and then file u-boot.bin, there is no activity on the serial line (I have
> > leds on the usb-serial converter) and I have to kill the transfer using
> > ctrl-c. I copied the whole minicom log below.
> > I suspect my kermit and minicom options are not correct (I am not all that
> > familiar with those tools). Could someone help me with those ?? I suspect
> > one has to set minicom "transfer protocols" option G for minicom, and
> > possibly some modem options too in minicom, and the .kermrc file.
> > I thank you in advance for your help and concern.
>
> > Laurent
>
> > My kermit version is the following :
> > C-Kermit 8.0.211, 10 Apr 2004, for Linux
> > Copyright (C) 1985, 2004,
> > Trustees of Columbia University in the City of New York.
> > Type ? or HELP for help.
>
> > USB boot (I have to sudo it for it to work).
> > perseus@perseus:~/tmp/omap3_usb/host$ sudo ./omap3_usbload uboot.bin
> > then try to upload
> > TI OMAP3 USB boot ROM tool, version 0.1
> > (c) 2008 Martin Mueller <
marti...@pfump.org>