Author Topic: Buster, Xenial and Bionic - updated 6.7.2019  (Read 733247 times)

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #165 on: January 30, 2014, 01:26:38 pm »
Quote
Trying to move the system to nand causes me some headache.

I noticed that CT Rev. B have troubles with nand install. Use updated script:

wget https://raw.github.com/igorpecovnik/Cubietruck-Debian/master/scripts/nand-install.sh

or just edit and change:

from:
(echo y;) | nand-part /dev/nand 32768 'bootloader 32768' 'rootfs 0' >> /dev/null || true
to:
(echo y;) | nand-part -f a20 /dev/nand 32768 'bootloader 32768' 'rootfs 0' >> /dev/null || true

Remove one file if exists in /root
rm .reboot-nand-install.pid

Run install once again and please report if this helps.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Morphy

  • Guest
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #166 on: January 31, 2014, 02:05:36 pm »
Is there any way to enable the leds with this image?

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #167 on: January 31, 2014, 04:40:54 pm »
Is there any way to enable the leds with this image?

update-rc.d -f disable_led.sh remove
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

ellnic

  • Guest
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #168 on: January 31, 2014, 07:51:00 pm »
@slovenia, sorry for the delayed reply. I received the power supply for the Kodak only to find the seller sent me the wrong one. I've returned it and the correct one is on the way (apparently)... we shall see ;-) glad to see you've had better luck :-D

Offline agarbato

  • Newbie
  • *
  • Posts: 32
  • Karma: +4/-0
    • View Profile
BOOT from USB
« Reply #169 on: January 31, 2014, 11:05:24 pm »
Hi All,

I'm trying to run this image from usb ssd drive.

Reason is simple..  on sata port I've a huge 2tb 2.5" drive which I spin down when I don't use it.
I did some tests and with SSD I'm close to 30mb/s read and 25write which is definitely better that nand or any sd card can do.

I know is not possible to boot straight from USB but we need sd or nand with uboot image.

I copied the root filesystem to /dev/sdb1 partition and made a sd bootable card with uboot and uEnv.txt with root=/dev/sdb1 and rootwait parameter.

It actually boot but wait forever for root device on sdb.
Looks to me usb storage module is not loaded at boot.
If I try to plug/unplug any usb device some messages comes up but nothing related to a mass storage.

Should I add some additional parameters to uEnv.tx?

Any suggestion? Nobody have ever tried to boot from USB this or another way?

Thanks
A.












Offline rose28357

  • Hero Member
  • *****
  • Posts: 567
  • Karma: +28/-0
    • View Profile
Re: BOOT from USB
« Reply #170 on: February 01, 2014, 04:35:20 am »
I copied the root filesystem to /dev/sdb1 partition and made a sd bootable card with uboot and uEnv.txt with root=/dev/sdb1 and rootwait parameter.

It actually boot but wait forever for root device on sdb.
USB at boot time should be enabled in script.bin. it is not by standard configuration. I have read some discussion about that somewhere in this forum ..

Offline agarbato

  • Newbie
  • *
  • Posts: 32
  • Karma: +4/-0
    • View Profile
Re: BOOT from USB
« Reply #171 on: February 01, 2014, 07:24:02 am »
Quote
USB at boot time should be enabled in script.bin. it is not by standard configuration. I have read some discussion about that somewhere in this forum ..

Uhm.. All I've found here is how to boot usb fel which is another story/purpose.
Hate when I can't fix things :-)





Offline agarbato

  • Newbie
  • *
  • Posts: 32
  • Karma: +4/-0
    • View Profile
Re: BOOT from USB
« Reply #172 on: February 01, 2014, 07:57:56 am »
Quote
USB at boot time should be enabled in script.bin. it is not by standard configuration. I have read some discussion about that somewhere in this forum ..

Uhm.. All I've found here is how to boot usb fel which is another story/purpose.
Hate when I can't fix things :-)

Ok.. Found a reason at least why this won't work unless the usb_storage module is embedded.
Same as here.. http://www.cubieforums.com/index.php/topic,1552.msg9839.html#msg9839


Offline Brakelmann

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #173 on: February 01, 2014, 08:57:57 am »

I noticed that CT Rev. B have troubles with nand install. Use updated script:

wget https://raw.github.com/igorpecovnik/Cubietruck-Debian/master/scripts/nand-install.sh

...

Run install once again and please report if this helps.

Hi Slovenia,

thanks for quick response, I downloaded your script and ran it twice.
But after the second reboot and removing the sd card the Cubietruck stucks on booting.

I attached a photo showing the boot screen stucking.

Any idea how to fix this?

Thanks, Brakelmann

Offline agarbato

  • Newbie
  • *
  • Posts: 32
  • Karma: +4/-0
    • View Profile
Re: BOOT from USB
« Reply #174 on: February 01, 2014, 10:45:37 am »
Quote
Uhm.. All I've found here is how to boot usb fel which is another story/purpose.
Hate when I can't fix things :-)

Yuppie! :-)

I've fixed this. I've a running installation from USB SSD and system is very responsive.

If you need to do the same follow patwood build instruction here :

http://www.cubieforums.com/index.php/topic,472.0.html

Or I can provide, if someone need it, uImage with mass-storage enabled.

Ciao
A.

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #175 on: February 01, 2014, 11:18:55 am »
Hi Slovenia,

thanks for quick response, I downloaded your script and ran it twice.
But after the second reboot and removing the sd card the Cubietruck stucks on booting.

I attached a photo showing the boot screen stucking.

Any idea how to fix this?

Thanks, Brakelmann

Huh :o Never experienced this kind of trouble ... try this, it might help:

http://www.cubieforums.com/index.php/topic,1275.msg9338/topicseen.html#msg9338

Direct link to file:
https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/nand.mbr.img.tgz

Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: BOOT from USB
« Reply #176 on: February 01, 2014, 11:30:54 am »
Or I can provide, if someone need it, uImage with mass-storage enabled.

Ciao
A.

 8)

We can add it into future build if it does not obstruct any other functionality ?
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline Brakelmann

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #177 on: February 01, 2014, 12:19:21 pm »

Huh :o Never experienced this kind of trouble ... try this, it might help:

http://www.cubieforums.com/index.php/topic,1275.msg9338/topicseen.html#msg9338

Direct link to file:
https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/nand.mbr.img.tgz

Hi Slovenia,

I gave it a try, downloaded the mbr and executeted...

Code: [Select]
dd if=nand.mbr.img of=/dev/nand bs=1M count=1
Shutdown, remove sd card, but CT still stucks on boot.

fdisk -l still shows...
Code: [Select]
Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

Something seems to be screwed up.
Any other idea?
Is there a way to part and format the nand manually?

Many thanks, Brakelmann.

EDIT: -> Some additional info:
nand-part shows:
Code: [Select]
root@cubie:~# nand-part
check partition table copy 0: mbr: version 0x00000200, magic softw411
magic softw411 is not softw311
check partition table copy 1: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 2: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 3: mbr: version 0x00000000, magic         
magic          is not softw311
all partition tables are bad!
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0
« Last Edit: February 01, 2014, 12:25:33 pm by Brakelmann »

Offline agarbato

  • Newbie
  • *
  • Posts: 32
  • Karma: +4/-0
    • View Profile
Re: BOOT from USB
« Reply #178 on: February 01, 2014, 12:34:25 pm »
Or I can provide, if someone need it, uImage with mass-storage enabled.
Ciao
A.

 8)
We can add it into future build if it does not obstruct any other functionality ?

That would be great.

Well compile didn't go really straight so maybe I need to test if everything still works :)
I had to change manually some settings on .config file and wireless it's not working anymore.
Well I don't really need it atm but compile failed because source do not include bmchd firmware.
I guess this has to be downloaded separately.  This can be easily fixed.

Obviously uImage is not enough, I had to copy also all new modules otherwise kernel complain and refuse to load modules created whith your uImage version.

Shoudn't be hard for you to add such feature maybe on a separate image or through a script like the one with nand.

All you need to do is to change this on .config and compile.

CONFIG_USB_STORAGE=y

That's it ;-)









Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server SD / NAND / Hotspot - update 22.1.2014
« Reply #179 on: February 01, 2014, 02:42:17 pm »

Huh :o Never experienced this kind of trouble ... try this, it might help:

http://www.cubieforums.com/index.php/topic,1275.msg9338/topicseen.html#msg9338

Direct link to file:
https://github.com/igorpecovnik/Cubietruck-Debian/raw/master/bin/nand.mbr.img.tgz

Hi Slovenia,

I gave it a try, downloaded the mbr and executeted...

Code: [Select]
dd if=nand.mbr.img of=/dev/nand bs=1M count=1
Shutdown, remove sd card, but CT still stucks on boot.

fdisk -l still shows...
Code: [Select]
Disk /dev/nand: 7700 MB, 7700742144 bytes
255 heads, 63 sectors/track, 936 cylinders, total 15040512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/nand doesn't contain a valid partition table

Something seems to be screwed up.
Any other idea?
Is there a way to part and format the nand manually?

Many thanks, Brakelmann.

EDIT: -> Some additional info:
nand-part shows:
Code: [Select]
root@cubie:~# nand-part
check partition table copy 0: mbr: version 0x00000200, magic softw411
magic softw411 is not softw311
check partition table copy 1: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 2: mbr: version 0x00000000, magic         
magic          is not softw311
check partition table copy 3: mbr: version 0x00000000, magic         
magic          is not softw311
all partition tables are bad!
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0
check partition table copy 0: mbr: version 0x00000200, magic softw411
OK
check partition table copy 1: mbr: version 0x00000200, magic softw411
OK
check partition table copy 2: mbr: version 0x00000200, magic softw411
OK
check partition table copy 3: mbr: version 0x00000200, magic softw411
OK
mbr: version 0x00000200, magic softw411
2 partitions
partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    32768 user_type=0
partition  2: class =         DISK, name =       rootfs, partition start =    65536, partition size =        0 user_type=0

nand-part looks ok, fdisk output is not relevant for NAND / it's output is normal

One dirty trick could be to install ubuntu server image for NAND with Phoenix suite and if that boots run install again and hope that this will work. Anyway, thank you for trying out. It looks like I missed something or there is some unknown hardware issue. I have to dig in more - no other ideas @this moment. Sorry.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com