Install Lime 2 rev.b on 32Gb micro sd card

Started by Blastmun, June 09, 2015, 08:30:16 PM

Previous topic - Next topic

Blastmun

Hello, i would like to install debian on my micro sdcard but with the official iso, but just 4Go are used. it's possible to extend ext3 partition ?

And when i follow the build instruction, i've problem to this step:
apt-get install gcc-4.7-arm-linux-gnueabihf ncurses-dev uboot-mkimage build-essential git

gcc-4.7-arm-linux-gnueabihf isn't found. I use VM with debian 7.8.0
If some people can help me.

Thx  :-[

Gerrit

QuoteAnd when i follow the build instruction, i've problem to this step:
apt-get install gcc-4.7-arm-linux-gnueabihf ncurses-dev uboot-mkimage build-essential git

gcc-4.7-arm-linux-gnueabihf isn't found. I use VM with debian 7.8.0


Add:
"deb http://www.emdebian.org/debian unstable main" to "/etc/apt/sources.list"

echo "deb http://www.emdebian.org/debian unstable main" >> /etc/apt/sources.list
apt-get udate


and try again

Blastmun

Ok i think it's okè! now it's uboot-mkimage who didn't found

Gerrit

try u-boot-tools it is the replacement for uboot-mkimage


Gerrit

It must be there, only thing i can think of that when you added that line to /etc/apt/sources.list you used > and not >>
echo "deb http://ftp.de.debian.org/debian wheezy main" >> /etc/apt/sources.list
apt-get update


should solve it then

Blastmun

now it's ok, but i'm rly bad to concern linux and now i have this problem:


At the end of the process you can check if everything is OK by
# ls u-boot.bin u-boot-sunxi-with-spl.bin spl/sunxi-spl.bin

and this file do not exist.... But i have followed the tuto....  :(

If someone can be share a20-olimex directory before step 4. Format and setup the SD-card
I would be grateful  :-[


Blastmun

i go test, but gparted give me error message and would'nt change sd card, i have test gparted on the ARM card, with VM and with live boot cd

Blastmun



Gerrit

Try it with a recent Ubuntu or Debian live CD/DVD so you have direct access to the hardware

wlanboy

Quote from: Blastmun on June 12, 2015, 04:13:41 PM
Error message from Gparted:


Got the same error message on my A20 Lime too.
Strange that gparted is not able to read the partition table and size of the two partitions.

Could you resolve this?

Pawel_W

Resizing the Debian partition on micro SD card is simple using linux fdisk command:
0. Login as root:
   sudo -s
1. Determine micro SD card device by connecting the card and using dmesg to read system messages.
2. fdisk /dev/sdX
3. print partitions - p
4. delete the second partition - d [enter] 2
5. create the second linux partition with default parameters - n
6. print partitions again and check the starting sector of the second partition - it should be the same as before, if not then this method does not work and you have to quit fdisk without saving and use sfdisk.
7. write partition table - w
8. quit - q

9. resize2fs /dev/sdX2
It will fail for the first time demanding to check the partition and printing the required command. Copy this command without quotation marks and execute it, then issue resize2fs command again.