Instructions for first time boot

Hi,

I bought a NanosG20, but can't find instructions on how to boot it for the very first time.

Could anybody either tell me, or send a link to instructions on how to boot for the first time.

The board tries to boot from all locations but fails. Do I need to create an SD card before I can use the board?

Thanks

Re: Instructions for first time boot

You are free to either put the rootfs into Flash or onto a SD card.

A tutorial how to use the SD card is here:
http://armbedded.eu/node/370

Please note that all steps have to be done on a linux PC with root access.

The flash can be used out of NanosG20's 2nd stage loader which is, in fact, a small Linux system. To enter this loader connect a serial terminal (115200 8N1) to the male DSUB9 connector, hold SW1 during power-up and choose "Drop to shell".

Follow this tutorial afterwards:
http://armbedded.eu/node/383

You find the latest rootfs for NanosG20 on the Ledato webpages:
https://www.ledato.de/download/nanosg20-rootfs-debian-wheezy.tar.bz2

Re: Instructions for first time boot

Additional note:

http://armbedded.eu/node/383 describes the process out of a running system from SD card. If you use the bootloader - which works well for this - some things are different:
1. UBI is already attached
2. /dev/ubictrl is named /dev/ubi_ctrl
3. The tar command cannot decompress gz or bz2 directly. Do the uncompress stage separately on your development system.
4. When mounting NFS over ethernet, you'll have to run udhcpc first.

Re: Instructions for first time boot

Are there instructions on how to put the image onto the Flash? I currently have it running on SD card. Is there any advantage to having it run from SD card rather than Flash?

THanks

Re: Instructions for first time boot

Please see this Howto for using the on-board flash:
http://armbedded.eu/node/383

Actually, there is no difference except the smaller size available on flash. Please keep in mind that data stored on NAND is being compressed (by the UBI FS layer). So, there might be more CPU load needed.

Re: Instructions for first time boot

The instructions located at

http://armbedded.eu/node/383

Do not work. /dev/ubictrl doesn't exist, and if I try with ubi_ctrl I get:

root@debian:~# ubiattach /dev/ubi_ctrl -m 2
ubiattach: error!: cannot attach mtd2
error 19 (No such device)

Can you update these instructions so that they are relevant?

Thanks,

Chris

Re: Instructions for first time boot

I checked the HOWTO using our default debian image booted from SD card (hostname was changed). You can read the log below.

Which debian version are you using?

taskit-br:~# cat /etc/debian_version 
5.0.6

taskit-br:~# ls -la /dev/ubi*
crw-rw---- 1 root root 10, 63 Jun  5  2013 /dev/ubi_ctrl

taskit-br:~# ubiattach /dev/ubi_ctrl -m 2
UBI device number 0, total 996 LEBs (128507904 bytes, 122.6 MiB), available 983 LEBs (126830592 bytes, 121.0 MiB), LEB size 129024 bytes (126.0 KiB)

taskit-br:~# ls -la /dev/ubi*
crw-rw---- 1 root root 253,  0 Apr 12 15:59 /dev/ubi0
crw-rw---- 1 root root  10, 63 Jun  5  2013 /dev/ubi_ctrl

taskit-br:~# mkdir /mnt/floppy

taskit-br:~# ubimkvol /dev/ubi0 -N data -m
Set volume size to 126830592
Volume ID 0, size 983 LEBs (126830592 bytes, 121.0 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "data", alignment 1

taskit-br:~# mount /dev/ubi0_0 /mnt/floppy -t ubifs

taskit-br:~# mount
[...]
/dev/ubi0_0 on /mnt/floppy type ubifs (rw)
[...]

taskit-br:~#

Re: Instructions for first time boot

Hi,

using 7.8, which is from the Ledato website. Where is version 5.0.6 from?

# cat /etc/debian_version
7.8

# ls -la /dev/ubi*
crw------- 1 root root 10, 63 Apr 13 14:50 /dev/ubi_ctrl

# ubiattach /dev/ubi_ctrl -m 2
ubiattach: error!: cannot attach mtd2
           error 19 (No such device)

Re: Instructions for first time boot

The old version (5.0.6) is the original one, we ship with the developer bundles.
You can find it here:
https://www.ledato.de/download/nanosg20-images.tar.bz2

Of course, since this is a quite old distribution, I will test and adjust the procedure with the Debian image you are using (7.8).

Re: Instructions for first time boot

Thank you.

Are there any advantages to using the older version or would you recommend using the latest version generally?

Re: Instructions for first time boot

In short - I would recomment the later version.

Syndicate content