Partitioning SD-card (Pre Amahi installation)

hakan
Posts: 3
Joined: Tue Nov 09, 2010 12:24 pm

Partitioning SD-card (Pre Amahi installation)

Postby hakan » Sun Nov 21, 2010 12:37 pm

Hello!
I just started my journey with the installation of Amahi on a GuruPlug. I used 'fdisk /dev/sbd1' to make two partitions (one primary 7,5Gb and one primary 512Mb swap) on my 8Gb SD-card.

Code: Select all

sheevaplug-debian:/home# fdisk /dev/sdb1 Command (m for help): p Disk /dev/sdb1: 8014 MB, 8014266368 bytes 247 heads, 62 sectors/track, 1022 cylinders Units = cylinders of 15314 * 512 = 7840768 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1p1 1 66 505331 82 Linux swap / Solaris /dev/sdb1p2 67 1022 7320092 83 Linux Command (m for help):
But I cant see my new partitions anywere:

Code: Select all

sheevaplug-debian:/dev# ls -l /dev/disk/by-id/ total 0 lrwxrwxrwx 1 root root 9 2010-02-27 07:35 usb-Generic_STORAGE_DEVICE_000000009909-0:0 -> ../../sda lrwxrwxrwx 1 root root 9 2010-02-27 07:35 usb-Generic_STORAGE_DEVICE_000000009909-0:1 -> ../../sdb lrwxrwxrwx 1 root root 10 2010-02-27 07:36 usb-Generic_STORAGE_DEVICE_000000009909-0:1-part1 -> ../../sdb1 sheevaplug-debian:/dev#
nor

Code: Select all

sheevaplug-debian:/home# df Filesystem 1K-blocks Used Available Use% Mounted on tmpfs 256716 0 256716 0% /lib/init/rw udev 10240 724 9516 8% /dev tmpfs 256716 4 256712 1% /dev/shm rootfs 473444 405932 67512 86% / tmpfs 256716 0 256716 0% /var/cache/apt /dev/sdb1 7822336 32 7822304 1% /media/usb0

How should I modify the file (create-amahi-f12-plug-disk.sh) to get the right partition? (sdb1p1 and sdb1p2 does not work)
If I use the proposed and existent 'sdb1' I get no benefit from my new swap partition?

Or?

I hope you can understand my question.

regards

Hakan

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Partitioning SD-card (Pre Amahi installation)

Postby bigfoot65 » Sun Nov 21, 2010 1:09 pm

You should be able to modify the create script to do what you need. Flash drives are typically seen as sdc1 and sdc2 for partitions. They will not normally be longer names as you stated in your post.

What you might want to do is insert your flash drive and check to see what it mounts as on your machine. Then update the create script accordingly. No need to create partitions manually if you use the script and update it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

hakan
Posts: 3
Joined: Tue Nov 09, 2010 12:24 pm

Re: Partitioning SD-card (Pre Amahi installation)

Postby hakan » Tue Dec 28, 2010 10:20 am

Hello again!
I have now sorted out my GuruPlug again after it was bricked.
I have also leave the SD-card and is now trying with the USB-stick.
My uBoot varibles look like this:

Code: Select all

GuruPlug>> printenv arcNumber=2653 baudrate=115200 bootargs=console=ttyS0, 115200 root=/dev/sdc1 rootdelay=10 bootcmd=${x_bootcmd_usb}; ${x_bootargs_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000; bootdelay=3 eth1addr=AD:AD:4E:00:XX:XX ethact=egiga0 ethaddr=AD:AD:4E:00:XX:XX mainlineLinux=yes stderr=serial stdin=serial stdout=serial x_boot_root=root=/dev/sdc1 rootwait x_bootargs=console=ttyS0, 115200 x_bootargs_root=root=/dev/sdc1 rootdelay=10 x_bootcmd_kernel=ext2load usb 2:1 0x6400000 /boot/uImage x_bootcmd_usb=usb start Environment size: 587/131068 bytes GuruPlug>>
the line

Code: Select all

x_bootcmd_kernel=ext2load usb 2:1 0x6400000 /boot/uImage
I modify after I check this commands:

Code: Select all

GuruPlug>> usb tree Device Tree: 1 Hub (480 Mb/s, 0mA) | u-boot EHCI Host Controller | +-2 Hub (480 Mb/s, 100mA) | USB2.0 Hub | +-3 Mass Storage (480 Mb/s, 500mA) | USB Storage 000000009909 | +-4 Mass Storage (480 Mb/s, 200mA) Sony Storage Media 5A080729A5163 GuruPlug>> usb storage Device 0: Vendor: Generic Rev: 9909 Prod: STORAGE DEVICE Type: Removable Hard Disk Capacity: not available Device 1: Vendor: Generic Rev: 9909 Prod: STORAGE DEVICE Type: Removable Hard Disk Capacity: 7647.0 MB = 7.4 GB (15661056 x 512) Device 2: Vendor: Sony Rev: 0100 Prod: Storage Media Type: Removable Hard Disk Capacity: 7648.0 MB = 7.4 GB (15663104 x 512) GuruPlug>> usb part 2 Partition Map for USB device 2 -- Partition Type: DOS Partition Start Sector Num Sectors Type 1 32 15663071 c GuruPlug>> ext2ls usb 2:1 /boot <DIR> 4096 . <DIR> 4096 .. <SYM> 21 uImage <DIR> 4096 grub 2828736 amahi-2.6.35.4-uImage 1079407 System.map GuruPlug>>
So I know I can read the filesystem on the USB-stick and see that the requested file exists.

But I get the following error when I try to start Amahi on my GuruPlug:

Code: Select all

NAND: 512 MiB In: serial Out: serial Err: serial Net: egiga0, egiga1 88E1121 Initialized on egiga0 88E1121 Initialized on egiga1 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... Device NOT ready Request Sense returned 02 3A 00 3 Storage Device(s) found Wrong Image Format for bootm command ERROR: can't get kernel image! GuruPlug>>
Somehow, thre are wrong format of the image!
How can I solve this problem?

Regards
Håkan

Who is online

Users browsing this forum: No registered users and 3 guests