November 12, 2019, 08:50:49 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Can't install any OS at all (A20 board)

Started by Nefhith, July 29, 2013, 05:52:27 am

Previous topic - Next topic

Nefhith

July 29, 2013, 05:52:27 am Last Edit: July 29, 2013, 08:05:36 am by Nefhith
Hello. I'm trying to boot different operatin systems (ubuntu/linux mainly). I've tried from the microSD card, installing berryboot on the cubieboard (it gives me an error that says it isn't an A10 board (no way, sherlock!)) and even praying to Cthulhu, but none of the attempts worked.

I there something I'm doing wrong? I'm using unetbootin and YUMI (your universal multiboot installer) to install the operating systems on the microSD card (even tried without installing them), but to no success.

My objective is to install Lubuntu or Raspbian on the NAND, if that helps in some way.

ikeeki

July 29, 2013, 10:14:54 am #1 Last Edit: July 29, 2013, 10:19:52 am by ikeeki
Quote from: Nefhith on July 29, 2013, 05:52:27 am
Hello. I'm trying to boot different operatin systems (ubuntu/linux mainly). I've tried from the microSD card, installing berryboot on the cubieboard (it gives me an error that says it isn't an A10 board (no way, sherlock!)) and even praying to Cthulhu, but none of the attempts worked.

I there something I'm doing wrong? I'm using unetbootin and YUMI (your universal multiboot installer) to install the operating systems on the microSD card (even tried without installing them), but to no success.

My objective is to install Lubuntu or Raspbian on the NAND, if that helps in some way.


One thing right: the reference to Lovecraft's legacy.
One wrong: forget about yumi, berryboot, and so on for cubie2 (I understand you have cubie 2 as your post is in a A20 section, I don catch ironies since my English cames from old school public education.
A20 sdcard flashing is:
dd if=/home/your.img of=/dev/sdb bs=1M (linux) (sdcard installation)
phoenix livesuit for android http://www.cubieforums.com/index.php/topic,555.0.html
Nand installation.

You have to read more, take a look to tricks and guides section.
;)

xc2000

I finaly (after having had problems too) made it installing

cb_a20_ubn_12.04_x-v1.03-hdmi.img

with livesuit

this seems to work on the A20 : http://linux-sunxi.org/Install_Ubuntu_Linux_for_Cubieboard
There is a Image further down for A20 ; The Image on Cubieboard.org for the A20 did NOT work for me.






Nefhith

Quote from: ikeeki on July 29, 2013, 10:14:54 am
Quote from: Nefhith on July 29, 2013, 05:52:27 am
Hello. I'm trying to boot different operatin systems (ubuntu/linux mainly). I've tried from the microSD card, installing berryboot on the cubieboard (it gives me an error that says it isn't an A10 board (no way, sherlock!)) and even praying to Cthulhu, but none of the attempts worked.

I there something I'm doing wrong? I'm using unetbootin and YUMI (your universal multiboot installer) to install the operating systems on the microSD card (even tried without installing them), but to no success.

My objective is to install Lubuntu or Raspbian on the NAND, if that helps in some way.



Phoenix
One thing right: the reference to Lovecraft's legacy.
One wrong: forget about yumi, berryboot, and so on for cubie2 (I understand you have cubie 2 as your post is in a A20 section, I don catch ironies since my English cames from old school public education.
A20 sdcard flashing is:
dd if=/home/your.img of=/dev/sdb bs=1M (linux) (sdcard installation)
phoenix livesuit for android http://www.cubieforums.com/index.php/topic,555.0.html
Nand installation.

You have to read more, take a look to tricks and guides section.
;)


Thanks for your answer. PhoenixSuite doesn't work. When I select the image and press "upgrade" it gives me the next warning message:
QuoteOpen Firmware Failed! Couldn't Upgrade
Possible Reasons:
1.Version of the Firmware is Too Old
2.The Firmware Format is broken
3. The Firmware is Used by Other Application


While waiting for your answer, I'll try xc2000's method. And thank you both for your help.

ikeeki

July 29, 2013, 10:54:55 am #4 Last Edit: July 29, 2013, 10:57:51 am by ikeeki
If you do not matter to have the OS in a 4 gb sdcard, the solution is:
download and unrar this:

http://dl.cubieforums.com/patwood/cubiuntu-0.5-A20.img.7z
from here
http://www.cubieforums.com/index.php/topic,568.0.html
and apply the command I told you.
What dou you want android or linux?
About phoenix, is it windows version x64?
Is it phoenix v 1.06?
Is it one of these android images?
http://cubiebook.org/index.php?title=Cubieboard2/Android_Prebuilt
Have you tried this: http://www.cubieforums.com/index.php/topic,555.0.html
I'd try easy things first and then try to install to NAND.
The more info you give us, the easier it would be for those who don't mind to help you  8)

patwood

There are two ways of installing linux distros on the CB2:

Allwinner images (installed with livesuit, phoenixsuite, phoenixcard).  These are in a special format developed by allwinner for android installs to the internal nand flash.  They have some limitations (can only install to nand, max partition size 2GB, limited linux installer support).

SD card images (installed with dd or win32diskimager).  These are mirror images of bootable SD cards.  The file is just one huge copy of the entire card, partition table and all.  Programs like unetbootin create x86 bootable devices, not ARM bootable devices.

If you've never installed linux on an ARM-based board, you should:

1. Forget everything you knew about installing linux, and
2. Read the wikis: http://linux-sunxi.org/Main_Page.

Nefhith

July 29, 2013, 11:29:52 am #6 Last Edit: July 29, 2013, 12:48:07 pm by Nefhith
Quote from: ikeeki on July 29, 2013, 10:54:55 am

What dou you want android or linux?
About phoenix, is it windows version x64?
Is it phoenix v 1.06?
Is it one of these android images?
http://cubiebook.org/index.php?title=Cubieboard2/Android_Prebuilt
Have you tried this: http://www.cubieforums.com/index.php/topic,555.0.html
I'd try easy things first and then try to install to NAND.
The more info you give us, the easier it would be for those who don't mind to help you  8)


Linux, if possible. Lubuntu is the OS I'm trying to install.
Yup. Windows x64 I think.
Phoenix v1.06. Updated it right now.
It's not one of the android images you mentioned. It's ubuntu/linux.
Didn't try what you told me to try because that's android.

Quote from: patwood on July 29, 2013, 11:12:32 am
There are two ways of installing linux distros on the CB2:

Allwinner images (installed with livesuit, phoenixsuite, phoenixcard).  These are in a special format developed by allwinner for android installs to the internal nand flash.  They have some limitations (can only install to nand, max partition size 2GB, limited linux installer support).

SD card images (installed with dd or win32diskimager).  These are mirror images of bootable SD cards.  The file is just one huge copy of the entire card, partition table and all.  Programs like unetbootin create x86 bootable devices, not ARM bootable devices.

If you've never installed linux on an ARM-based board, you should:

1. Forget everything you knew about installing linux, and
2. Read the wikis: http://linux-sunxi.org/Main_Page.


1. I will... =(

Can the SD card images be installed on the NAND or that's only with the Allwinner images?


Edit: I took the fifth OS in the list (http://linux-sunxi.org/Install_Ubuntu_Linux_for_Cubieboard), and finally managed to install it. It gave me the user "linaro" and made me choose the OS (took Lubuntu). The problem now is that it's on 720p, and the image is too big (it gets out of the screen) and even if I plug the ethernet cable, I still don't have internet connection.

Any help?

patwood

Quote from: Nefhith on July 29, 2013, 11:29:52 am
Can the SD card images be installed on the NAND or that's only with the Allwinner images?

Yes, but not using external tools like livesuit/phoenix.  Once you have linux running on an SD card, you simply repartition the nand, create a file system on it, and rsync the running linux system to the nand partition.  (It's anything but simple, but this tutorial will take you through it: http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408)

Quote
Edit: I took the fifth OS in the list (http://linux-sunxi.org/Install_Ubuntu_Linux_for_Cubieboard), and finally managed to install it. It gave me the user "linaro" and made me choose the OS (took Lubuntu). The problem now is that it's on 720p, and the image is too big (it gets out of the screen) and even if I plug the ethernet cable, I still don't have internet connection.

Any help?

It's a pretty barebones distribution, mostly useful for testing.  The kernel it's running is pretty old and missing a lot of drivers. It also has android "paranoid networking" enabled, which means only users in the inet group can access the network.  See this for details: http://www.cubieforums.com/index.php/topic,476.msg2181.html#msg2181.

xc2000

there is a New Ubuntu Image available Here
http://cubiebook.org/index.php?title=Cubieboard2/Lubuntu_12.04_Desktop

This one Works flashing to the Nand.
The Screen is not looking like Zoom, and everything seems to work fine there.

Still the Limitation it has (2GB Partition, no Resolution other than 720p as it seems)

Just to mention that it is an option. Maybe I gonna go for the SD-Card Image, because you have more space there on a Big Card.
Still have no solution for the Resolution Fix, nobody could tell so far how to change to other resolution than 720p (changing in the script.bin seems not to work)

patwood

Quote from: xc2000 on July 29, 2013, 04:22:16 pm
there is a New Ubuntu Image available Here
http://cubiebook.org/index.php?title=Cubieboard2/Lubuntu_12.04_Desktop
...
Still the Limitation it has (2GB Partition, no Resolution other than 720p as it seems)
...

There should be a way to set these up to expand the root fs at the very first boot after install....

xc2000

July 30, 2013, 02:31:21 am #10 Last Edit: July 30, 2013, 02:34:26 am by xc2000
Quote
There should be a way to set these up to expand the root fs at the very first boot after install....


Don't know exactly where I have read that, but its stated somewhere, that [...] However - not possible to have bigger Partition as 2GB. Also there needs to be space for /swap. (well have not had a look at the automaticly formated partition table yet, but certainly swap is needed) - So 4GB of Space is very limited for a System like Ubuntu. Even if /home is mounted on the Card. On my test Install on the 2GB Partition its having 800Mb free space. Well ok, maybe if you mount /var also on a card - hmm that could be an option.

So maybe thats (if someone really needs a working, running System) - better to install it on forexample 32GB SD-Card, and run it from there. (Dont know if speed of Access on the Card is significantly worse than accessing the Nand. - Maybe putting the swap on the Nand then)

Well - Experimenting atm  It's just thoughts.

Would be interesting to hear what others think about that...

Nefhith

July 30, 2013, 03:19:23 am #11 Last Edit: July 30, 2013, 04:21:10 am by Nefhith
So, what do you suggest me, use a SD card or install on NAND? I won't be using the cubie for many things, probably will only need java and about 500mb. My plan was only setting up some software and then only access to it via FTP (filezilla) if I had to change something.

Edit: While waiting for your answer, I'll test the last OS xc2000 suggested.
Edit2: It's the same OS that I previously tried, lol.

Edit3: Doing this right now:
Quote from: patwood on July 09, 2013, 11:55:43 am
This is a problem (security feature) with android linux kernels.  You need to create an inet group with GID 3003 and add any user that needs network access to this group.  Some possibilities are ntp, www-data, avahi, nobody (for mdnsd), cups, and any other daemon that might open a network socket.

Alternatively, you can use the kernel I mention here (better take the modules too): http://www.cubieforums.com/index.php/topic,440.  It has the "android paranoid network" kernel option turned off.


Edit4: Can't do these previous steps because I can't mount by SD card (via microSD or USB,  it just doesn't work). It give me thhis error: g-io error quark 15. Also, I found I had very little space, so I found the operating system mounted itself onto a 2.1gb partition and there was a 1.7gb partition that seemed to be free because it was unformatted and unmounted, so I guess I could use that as extra storage.

Nefhith

It works! I installed v1.04-beta1 and worked perfectly. The image not fitting the screen problem is fixed (even though the resolution is at 1280x720, but doesn't matter), it recognizes the ethernet cable (so I can get internet) and porn downloads pretty fast on it!

Thank you guys for all your help, I hope the almighty Odin rewards you!

patwood

Quote from: xc2000 on July 30, 2013, 02:31:21 am
Quote
There should be a way to set these up to expand the root fs at the very first boot after install....


Don't know exactly where I have read that, but its stated somewhere, that [...] However - not possible to have bigger Partition as 2GB. Also there needs to be space for /swap. (well have not had a look at the automaticly formated partition table yet, but certainly swap is needed) - So 4GB of Space is very limited for a System like Ubuntu. Even if /home is mounted on the Card. On my test Install on the 2GB Partition its having 800Mb free space. Well ok, maybe if you mount /var also on a card - hmm that could be an option.

Yes, the livesuit/phoenixsuite/phoenixcard nand installers have a 2GB file system limitation.

I was thinking more along the lines of an init script that runs the first time the system boots and expands the 2GB partition to fill the rest of NAND: run nand-part to delete the 1.7GB partition and expand the current one, then resize2fs root.  Currently complicated by the fact that the A20 nand drivers don't respond to ioctls to reread the partition tables when they're modified, so a reboot is required between increasing the partition size and running resize2fs.  Sigh.

Turns out 4GB is quite a lot of space -- depending on what you want to do.  You can install a nicely working system with developer tools, X, and a lightweight window manager in under 2GB. Linaro with developer tools and no GUI fits in 650MB.  And not many people have needed swap, even running a GUI.  I needed it -- on a headless server for pity's sake -- but 500MB was plenty.

Quote
So maybe thats (if someone really needs a working, running System) - better to install it on forexample 32GB SD-Card, and run it from there. (Dont know if speed of Access on the Card is significantly worse than accessing the Nand. - Maybe putting the swap on the Nand then)

I've run speed tests of nand and mmc on A10 and A20.  The A10 nand speed falls somewhere between a class 4 and class 6 sd card; the A20 nand, at least on the 3.3.0 kernel, is much slower, about 60% of the A10 nand.  I'm hoping this is just a driver or device initialization issue and not some fault of the A20's nand controller.

Nefhith

July 30, 2013, 11:49:30 am #14 Last Edit: July 30, 2013, 11:54:46 am by Nefhith
Doesn't work anymore :(

For some reason, after going to lunch and coming back, the cubieboard won't start the OS. Only black screen. I've been able to reboot it previously without any trouble, but after shutting down ant turning it back on, the resolution of the screen (typical ubuntu black screen while booting that show some info) is again messed up, and then it stays black.

I can write stuff and such, but nothing else.

Edit: Pic!