Release 0.1

Preparation:

when I connect BeagleBone(Angstrom system) to computer, I can only find one partition /sdd mounted ( by command: fdisk -l ; dmesg | tail; and open computer file to see)
when I connect Fedora 17 SD card (which is not compatible for BeagleBone yet) to computer, I can find two partitions /sdb1 and /sdb2 mounted
So, I disconnect BeagleBone, and take the Angstrom SD card out, and directory connect to computer. Now, I can see two partitions /sdb1 and /sdb2.

when I use command: screen /dev/ttyUSB1 115200; to connect Angstrom on Beaglebone, it works. username: root, password: blank.    exit by: ctrl a then ctrl z.
Run command: dmesg | grep FTDI | grep “now attached to” | tail -n 1 | awk ‘{ print $NF }'; to find out what /dev/ttyUSB# the BeagleBone is connected to.  usually USB1

Release 0.1: Keep the partition 1 of Angstrom (boot files), and replace partition 2 with Fedora 17 userspace(“rootfs”).

Mount /dev/sdb2 and check files:
[root@Fedora17 jcqiu]# mkdir /mnt/AngRootfs
[root@Fedora17 jcqiu]# mount /dev/sdb2 /mnt/AngRootfs
[root@Fedora17 jcqiu]# ls /mnt/AngRootfs/
bin   boot2  etc   lib         media  opt  proc  sbin  tmp  var
boot  dev    home  lost+found  mnt    p1   run   sys   usr

Delete all Angstrom root files:
[root@Fedora17 jcqiu]# rm -rf /mnt/AngRootfs/*

Download the F17 rootfs from: http://download.fedoraproject.org/pub/fedora-secondary/releases/17/Images/armhfp/Fedora-17-armhfp-console.tar.xz

yum install p7zip, and unzip the download file.
and then tar the file to /mnt/AngRootfs/
However, there is error when I tar the file:
[root@Fedora17 Downloads]# tar -xvzf ./Fedora-17-armhfp-console.tar /mnt/AngRootfs/
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Find out I should not use -z here. Try again:
[root@Fedora17 Downloads]# tar -xvf Fedora-17-armhfp-console.tar /mnt/AngRootfs/
tar: /mnt/AngRootfs: Not found in archive
tar: Exiting with failure status due to previous errors

Find out use -C option to specify in which directory you want the files extracted.
[root@Fedora17 Downloads]# tar -xvf Fedora-17-armhfp-console.tar -C /mnt/AngRootfs/

Eject SD card: eject /dev/sdb;
put SD card back in BeagleBone, and connect to computer.
Nothing happen….
run command: dmesg | tail;
[root@Fedora17 Downloads]# dmesg | tail
[ 7878.610758] usb 2-6.1: Endpoint 1 MaxPacketSize 512
[ 7878.610761] usb 2-6.1: Endpoint 2 MaxPacketSize 512
[ 7878.610763] usb 2-6.1: Setting MaxPacketSize 512
[ 7878.610995] usb 2-6.1: FTDI USB Serial Device converter now attached to ttyUSB1
[ 7925.988647] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 7925.990142] sd 4:0:0:0: [sdb] Asking for cache data failed
[ 7925.990146] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 7978.212420] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 7978.213912] sd 4:0:0:0: [sdb] Asking for cache data failed
[ 7978.213915] sd 4:0:0:0: [sdb] Assuming drive cache: write through

Click reset button:
[root@Fedora17 Downloads]# dmesg | tail
[ 7978.212420] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 7978.213912] sd 4:0:0:0: [sdb] Asking for cache data failed
[ 7978.213915] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8030.436060] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 8030.437539] sd 4:0:0:0: [sdb] Asking for cache data failed
[ 8030.437543] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 8030.550059] usb 2-1: reset high-speed USB device number 2 using ehci_hcd
[ 8082.660439] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 8082.661919] sd 4:0:0:0: [sdb] Asking for cache data failed
[ 8082.661923] sd 4:0:0:0: [sdb] Assuming drive cache: write through

fdisk -l not showing /dev/sdb;

Botting not success for now!

——————————————————————–

I will continue work on it.
Here is the final tar file include both partitions files: https://docs.google.com/open?id=0BxheefHomqmzbGxJeFNyOG5sVlU

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s