0
gil44

[Solved] Armbian on Odroid-C2 -Boot on an external USB-drive

Recommended Posts

Hello

 

At first, I would like to tell how I think your work you do on the arm boards is great.

 

Looking actively for an alternative to the official Odroid Ubuntu image, I downloaded and installed the Armbian image on a SD card with dd and booted on the Odroid-C2 board. I made a first boot and a update/upgrade cycle on the SD card before to transfer the ext4 (root) partition with rsync (with the basic : -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found", options) to an empty, new made ext4-partition on a 16 Gb-USB 3.0-drive.

 

The OS boots well on the USB device (changed the boot.ini and fstab files as below) and I connect the board by ssh as root or as common user.

But as shown below, I am now unable to install new packages or run the updates:

I have try to enable the automatic security update download for the basic system and the kernel without success.

 

I think that the difficulty is how to manage the changes in the remote host identification...

Any suggestion would be very welcome!

 

 

_________________

boot.ini file changes (SD card):

 

# Boot Arguments
setenv bootargs "root=UUID=45803055-e115-467d-80fd-037d4f812182 rootwait rootflags=data=writeback rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes loglevel=${verbosity} net.ifnames=0"
 

 

________________________

fstab changes (on the USB-drive - UUID=45803055-e115-467d-80fd-037d4f812182):

 

#/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
UUID=45803055-e115-467d-80fd-037d4f812182 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
/dev/mmcblk0p1 /boot vfat defaults 0 2
tmpfs /tmp tmpfs defaults,rw,nosuid 0 0
/var/swap none swap sw 0 0

 

____________________

Connection to the board:

 

$ ssh root@192.168.1.79
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
  ___      _           _     _    ____ ____  
 / _ \  __| |_ __ ___ (_) __| |  / ___|___ \
| | | |/ _` | '__/ _ \| |/ _` | | |     __) |
| |_| | (_| | | | (_) | | (_| | | |___ / __/
 \___/ \__,_|_|  \___/|_|\__,_|  \____|_____|
                                             

Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 3.14.65-odroidc2

System load:   0.24                Up time:       4 min        
Memory usage:  12 % of 1719Mb     IP:            192.168.1.49
CPU temp:      39°C               
Usage of /:    13% of 15G        storage/:      13% of 15G        

Last login: Sun Apr  3 21:50:29 2016

root@odroidc2:~# apt-get update
Hit http://apt.armbian.comjessie InRelease                                
0% [Waiting for headers] [Waiting for headers]Splitting up /var/lib/apt/lists/apt.armbian.com_dists_jessie_InRelease inGet:1 http://security.debian.orgjessie/updates InRelease [63.1 kB]
Ign http://apt.armbian.comjessie InRelease   
E: GPG error: http://apt.armbian.comjessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

 

root@odroidc2:~# apt-get install unattended-upgrades apt-listchanges
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package unattended-upgrades
E: Unable to locate package apt-listchanges

 

root@odroidc2:~# dpkg-reconfigure -plow unattended-upgrades
dpkg-query: package 'unattended-upgrades' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: unattended-upgrades is not installed

 

root@odroidc2:~# apt-get install unattended-upgrades apt-listchanges
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package unattended-upgrades
E: Unable to locate package apt-listchanges

 

 

 

 

_________________
 

post-1041-0-90488800-1459715971_thumb.jpg

Share this post


Link to post
Share on other sites

Thanks!

 

Hmm. Try with removing apt.armbian.com from /etc/apt/apt.conf.d/ and do the apt-get update again. We don't have anything for this board on repository yet since it's a first build.

 

Note that not all arm64 packages exists in debian repository. I found one so far.

Share this post


Link to post
Share on other sites

Hi!

 

Thanks a lot for your quick reply!

 

It is strange...

 

Removing the line 'deb <ftpmaster@debian.org>
W: Failed to fetch http://apt.armbian.com/dists/jessie/InRelease Unable to find expected entry 'main/binary-arm64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

#root@odroidc2:~# apt install gedit
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gedit is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gedit' has no installation candidate
 

Share this post


Link to post
Share on other sites

OK, then try to use our nand-sata-install script which will copy rootfs from sd card to sata. It's untested so you need to check / adjust boot scripts manually, but the copy part is proven on many boards. Second, use other USB media and double check mount parameters in fstab.

Share this post


Link to post
Share on other sites

@gil44

 

Quick google search shows that this

W: GPG error: http://httpredir.debian.orgjessie Release: The following signatures were invalid: BADSIG 8B48AD6246925553 Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org> 

is probably related to mirrors selected by httpredir.debian.org

 

Please try replacing

http://httpredir.debian.org/debian 

with

http://ftp.uk.debian.org/debian 

in your /etc/apt/sources.list

Share this post


Link to post
Share on other sites

@Igor, @zador

Thanks for replying and for the info

 

It is possible that this situation could be a multiple factorial one.

Changing for http://ftp.uk.debian.org/debian and trying a 'gedit' installation returns similar errors like the precedent depository address:

 

For ex. trying to install 'debconf' returns:

 

#root@odroidc2:~# apt install debconf
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  dpkg gcc-4.9-base libacl1 libattr1 libbz2-1.0 libc6 libgcc1 liblzma5 libpcre3 libselinux1 multiarch-support
  perl-base tar zlib1g

...//...
dpkg: error processing archive /var/cache/apt/archives/libgcc1_1%3a4.9.2-10_arm64.deb (--unpack):
 pre-dependency problem - not installing libgcc1:arm64
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.9.2-10_arm64.deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

 

So it appears that the configuration would be transferred not correctly from the SD card to the USB-drive before...

 

Haut les coeurs!

 

I will try to clone the SD ext4 partition with the nand-sata-install script to the USB-drive

 

...


 

Share this post


Link to post
Share on other sites

Great! Great!

The nand-sata-install script installed ont he SD card works on the Od-C2 like a charm!

 

Nothing to adjust, just to follow the instructions...

All is done automatically and is ok.

The ext4 partition of the SD card has been cloned to the USB-drive, the boot.ini and the fstab files adjusted automatically .

The OS boots now fine ont he USB drive, is upgradable, all scripts are functionally installed.

I am testing now how to run the gpsd daemon on the Od-C2 with the Armbian and everything seems to proceed well.

Many thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0