Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Blastmun on June 09, 2015, 08:30:16 PM

Title: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 09, 2015, 08:30:16 PM
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  :-[
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Gerrit on June 09, 2015, 10:47:04 PM
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
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 10, 2015, 12:09:34 AM
Ok i think it's okè! now it's uboot-mkimage who didn't found
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Gerrit on June 10, 2015, 01:21:35 AM
try u-boot-tools it is the replacement for uboot-mkimage
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 10, 2015, 08:18:12 AM
did'nt found too :(
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Gerrit on June 10, 2015, 01:27:32 PM
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
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 10, 2015, 07:52:32 PM
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  :-[
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Gerrit on June 11, 2015, 03:50:52 PM
this might be more simple to do https://www.olimex.com/forum/index.php?topic=2738.msg11521
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 11, 2015, 09:35:01 PM
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
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 12, 2015, 04:13:41 PM
Error message from Gparted:

(http://puu.sh/im2mP/1ee4349691.png)
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Blastmun on June 15, 2015, 06:48:18 PM
??  :(
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Gerrit on June 15, 2015, 08:15:53 PM
Try it with a recent Ubuntu or Debian live CD/DVD so you have direct access to the hardware
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: wlanboy on August 02, 2015, 10:22:46 AM
Quote from: Blastmun on June 12, 2015, 04:13:41 PM
Error message from Gparted:

(http://puu.sh/im2mP/1ee4349691.png)
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?
Title: Re: Install Lime 2 rev.b on 32Gb micro sd card
Post by: Pawel_W on August 02, 2015, 04:11:37 PM
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.