Author Topic: Lubuntu Server v2, not working SD image?  (Read 12314 times)

Offline venex

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Lubuntu Server v2, not working SD image?
« on: September 09, 2014, 03:16:02 am »
Unfortunately everything is badly documented.
Fortunately, once in a while, new releases are uploaded!

http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/tsd/
Build date states 2014-08-14

This is very recent, why isnt this documented, also on the internet I can't find anything about lubuntu v2, but if this is what it is, I'm very HAPPY  ;D

Anyone tried this already?
« Last Edit: September 15, 2014, 03:23:29 am by venex »

Offline actkk2000

  • Hero Member
  • *****
  • Posts: 572
  • Karma: +2/-11
    • View Profile
Re: Lubuntu Server v2
« Reply #1 on: September 09, 2014, 10:23:28 pm »
Typical cubietech...  :o

Offline venex

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2
« Reply #2 on: September 10, 2014, 02:07:54 am »
It seems to be (l)ubuntu server 14.04 which is great.
Unfortunately I get on boot:
Code: [Select]
Waiting for root device /dev/mmcblk1p2
There also seems to be another card version
http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/tfx2/ going to try that one, I don't know the differences, but keep you posted!
« Last Edit: September 10, 2014, 02:28:18 am by venex »

Offline allen

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2
« Reply #3 on: September 10, 2014, 07:10:36 am »
It seems to be (l)ubuntu server 14.04 which is great.
Unfortunately I get on boot:
Code: [Select]
Waiting for root device /dev/mmcblk1p2
There also seems to be another card version
http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/tfx2/ going to try that one, I don't know the differences, but keep you posted!

please use http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/nand/cb2-lubuntu-server-nand-tfcard-v2.0.img.gz 
the tsd as a tf card ,so the boot is root=/dev/mmcblk1p2

Offline venex

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2
« Reply #4 on: September 11, 2014, 04:42:41 am »
please use http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/nand/cb2-lubuntu-server-nand-tfcard-v2.0.img.gz 
the tsd as a tf card ,so the boot is root=/dev/mmcblk1p2

I'm sorry, I don't fully understand.
I have tried

tsd image -> Waiting for root device
tfx2 image -> boots from old nand installation, ignores sd

I copied the cb2-lubuntu-server-nand-tfcard-v2.0.img to the sd card with Win32DiskImager (why does it say nand?) and the same result, it boots from nand (old installation) and ignores sd.

Am I missing a step?

I need a step by step instruction because I don't understand the basics, don't even know what tsd and tfx2 is.


I need a working SD image, the newer, the better.
Anyone having luck with some images?
« Last Edit: September 15, 2014, 03:24:24 am by venex »

Offline Mikusz

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2, not working SD image?
« Reply #5 on: September 15, 2014, 06:38:49 am »
Hello! I tried to boot Lubuntu Server v2.0 (cb2-lubuntu-server-tsd-tfcard-v2.0.img) from a TF Card on my Cubieboard2 and I got same result: the boot process stucked at "Waiting for boot device ..." message.
I found that uEnv.txt file contains invalid device. I replaced "root=/dev/mmcblk1p2" line with "root=/dev/mmcblk0p2" and Lubuntu booted!
If I remember correctly, the first partition on TF Card is ext2, so anyone have to edit uEnv.txt file on some Linux PC. I done it on my Linux netbook with Midnight Commander what I launched with "sudo mc" command. uEnv.txt file is found in /media/<linux_user>/<TFCard_partition1_ID>/ directory.
Later I found that http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/tsd/config/uEnv-tsd.txt file, too, contains correct device.
At the first boot Lubuntu resizes the second partition on the TF Card and boots again.
There was not graphical desktop, but I managed to install LXDE with the following commands:

apt-get update
apt-get upgrade
apt-get install lxde
reboot

Then CB2 booted into graphical login screen and I could login with linaro user. Everything is fine but the default web browser is very slow. Maybe I should disable hardware acceleration or another option in browser, or try another browser.

Mikusz
« Last Edit: September 15, 2014, 07:27:07 am by Mikusz »

Offline venex

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2, not working SD image?
« Reply #6 on: September 16, 2014, 02:18:33 am »
My cubieboard has lubuntu 13.09 on nand.
Booted board and inserted sd.

Code: [Select]
mount /dev/mmcblk0p1 /mnt/
nano /mnt/uEnv.txt
#changed to root=/dev/mmcblk0p2
reboot

Now I thought the board would boot from sd, but I ended up in 13.09 again
Why do I have issues?

Is uBoot located at the image or should I add manually?
I have read this:
http://docs.cubieboard.org/tutorials/ct1/installation/install_lubuntu_desktop_server_to_sd_card
How can I check the presence of uBoot, I only see the p1 and p2 partitions flashed by the image
« Last Edit: September 16, 2014, 02:58:32 am by venex »

Offline Mikusz

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2, not working SD image?
« Reply #7 on: September 19, 2014, 07:51:34 pm »
u-boot should be located in the image file, but we can insert another u-boot, too.
There is a description about SD Card Layout on http://linux-sunxi.org/Bootable_SD_card/ link.
If anyone look at an image file with a hexa editor or viewer, can check that Initial SPL loader
and u-boot are embedded. We can try another u-boot images, too, what are found on
http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sunxi/ link. These images should be
written to TF Card by dd commands as it is described in first link.
I had boot problems with some Linux image files, so I suggest to try another Linux distribution, too.
I had a big disappointment with Lubuntu Server v2.0 because any web browser was very slow,
and frozen almost every time. When I tried to install again Lubuntu Server, I didn't get X Window,
so I gave up trying further.
I tried more Linux distribution, for example Debian from
http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/ page
and Cubian from http://cubian.org/downloads/. Cubian is quite well documented and there are
good tutorials for installing Cubian: http://cubian.org/tutorials/.
I booted Cubian-base-r5-a20.img and managed to install LXDE, too, by this tutorial:
http://cubian.org/2013/09/29/install-lxde-with-opengles-accelerated-on-cubian/

If neither Linux boots on your Cubieboard, you sould try another TF Card. Theoretically,
if there is a TF Card in Cubie's Card slot, then Cubie should boot from it, and if there is not
any card in reader or the card is defective, Cubie boots from NAND. There is another case,
if the card's or reader's contact is dirty and Cubie does not recognize the card. Then you
should clean the reader and card.
I hope you'll find solution.

Mikusz
« Last Edit: September 19, 2014, 07:57:15 pm by Mikusz »

Offline allen

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2
« Reply #8 on: September 29, 2014, 10:44:05 pm »
please use http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/nand/cb2-lubuntu-server-nand-tfcard-v2.0.img.gz 
the tsd as a tf card ,so the boot is root=/dev/mmcblk1p2

I'm sorry, I don't fully understand.
I have tried

tsd image -> Waiting for root device
tsd image use for tsd storage medium board
http://cubieboard.org/2014/08/12/how-to-choose-the-storage-media-in-cubieboard/


tfx2 image -> boots from old nand installation, ignores sd

tfx2 image use for double card  Insert boot card to card2 slot (bootcard)


http://docs.cubieboard.org/tutorials/cb2


I copied the cb2-lubuntu-server-nand-tfcard-v2.0.img to the sd card with Win32DiskImager (why does it say nand?) and the same result, it boots from nand (old installation) and ignores sd.

Am I missing a step?

#umount /media/XXX
#mkfs.vfat -I /dev/sdX
#dd if=cb2-lubuntu-server-nand-tfcard-v2.0.img of=/dev/sdX
#sync


if it can't boot from your nand board ,please sent email to notice me allen@cubietech.com

the lubuntu-serverv 2.0 is just as temporary  image ,we will maintenance debian server ,
so i just put that ,no announcement




« Last Edit: October 07, 2014, 09:20:46 pm by allen »

Offline allen

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2, not working SD image?
« Reply #9 on: September 29, 2014, 10:50:55 pm »
Hello! I tried to boot Lubuntu Server v2.0 (cb2-lubuntu-server-tsd-tfcard-v2.0.img) from a TF Card on my Cubieboard2 and I got same result: the boot process stucked at "Waiting for boot device ..." message.
I found that uEnv.txt file contains invalid device. I replaced "root=/dev/mmcblk1p2" line with "root=/dev/mmcblk0p2" and Lubuntu booted!
If I remember correctly, the first partition on TF Card is ext2, so anyone have to edit uEnv.txt file on some Linux PC. I done it on my Linux netbook with Midnight Commander what I launched with "sudo mc" command. uEnv.txt file is found in /media/<linux_user>/<TFCard_partition1_ID>/ directory.
Later I found that http://dl.cubieboard.org/software/a20-cubieboard/lubuntu/cb2-lubuntu-card-v2.0/server/tsd/config/uEnv-tsd.txt file, too, contains correct device.
At the first boot Lubuntu resizes the second partition on the TF Card and boots again.
There was not graphical desktop, but I managed to install LXDE with the following commands:

apt-get update
apt-get upgrade
apt-get install lxde
reboot

Then CB2 booted into graphical login screen and I could login with linaro user. Everything is fine but the default web browser is very slow. Maybe I should disable hardware acceleration or another option in browser, or try another browser.

Mikusz

tsd image use for tsd storage medium board
http://cubieboard.org/2014/08/12/how-to-choose-the-storage-media-in-cubieboard/

On the tsd board ,if TF card boot ,the uEnv.txt should "root=/dev/mmcblk1p2" ,if tsd boot ,mean the system in the tsd  should "root=/dev/mmcblk0p2" use cb2-lubuntu-server-tsd-tfcard-v2.0.img

On the nand  board ,if TF card boot ,the uEnv.txt should "root=/dev/mmcblk0p2" use cb2-lubuntu-server-nand-tfcard-v2.0.img

« Last Edit: September 29, 2014, 10:58:20 pm by allen »

Offline allen

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2, not working SD image?
« Reply #10 on: September 29, 2014, 10:57:23 pm »
u-boot should be located in the image file, but we can insert another u-boot, too.
There is a description about SD Card Layout on http://linux-sunxi.org/Bootable_SD_card/ link.
If anyone look at an image file with a hexa editor or viewer, can check that Initial SPL loader
and u-boot are embedded. We can try another u-boot images, too, what are found on
http://dl.linux-sunxi.org/nightly/u-boot-sunxi/u-boot-sunxi/ link. These images should be
written to TF Card by dd commands as it is described in first link.
I had boot problems with some Linux image files, so I suggest to try another Linux distribution, too.
I had a big disappointment with Lubuntu Server v2.0 because any web browser was very slow,
and frozen almost every time. When I tried to install again Lubuntu Server, I didn't get X Window,
so I gave up trying further.
I tried more Linux distribution, for example Debian from
http://www.igorpecovnik.com/2013/12/24/cubietruck-debian-wheezy-sd-card-image/ page
and Cubian from http://cubian.org/downloads/. Cubian is quite well documented and there are
good tutorials for installing Cubian: http://cubian.org/tutorials/.
I booted Cubian-base-r5-a20.img and managed to install LXDE, too, by this tutorial:
http://cubian.org/2013/09/29/install-lxde-with-opengles-accelerated-on-cubian/

If neither Linux boots on your Cubieboard, you sould try another TF Card. Theoretically,
if there is a TF Card in Cubie's Card slot, then Cubie should boot from it, and if there is not
any card in reader or the card is defective, Cubie boots from NAND. There is another case,
if the card's or reader's contact is dirty and Cubie does not recognize the card. Then you
should clean the reader and card.
I hope you'll find solution.

Mikusz

very useful !

Offline venex

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: Lubuntu Server v2
« Reply #11 on: October 01, 2014, 02:33:06 am »
I need a working SD image, the newer, the better.
Anyone having luck with some images?

I am using http://www.cubieforums.com/index.php/topic,1275.0.html now and it's working great!
Good luck