Hi All,
I am trying to build an arm linux image for my A20-OLinuXino-MICRO. On the wiki I have found the following tutorial. As lubuntu 13.04 is end-of live, I am trying to run the steps on Debian 7:
https://www.olimex.com/wiki/A20-OLinuXino-MICRO#How_to_generate_Arch_Linux_image.3F
http://alarma20.wordpress.com/2013/09/13/howto-build-arch-linux-arm-for-a20-olinuxino-micro/
Step 1. Setup the toolchain doesn not work for me:
# apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf gcc-4.7-arm-linux-gnueabihf-base gcc-arm-linux-gnueabihf git wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package binutils-arm-linux-gnueabihf
E: Unable to locate package gcc-4.7-arm-linux-gnueabihf-base
E: Couldn't find any package by regex 'gcc-4.7-arm-linux-gnueabihf-base'
E: Unable to locate package gcc-arm-linux-gnueabihf
I will edit this post when I find the solution
Kind regards,
Cedric
Might need to edit /etc/apt/sources.list to add
http://www.emdebian.org/debian
John
It looks like I have to execute these 2 commands to get arm stuff:
http://gsoc.sitedethib.com/posts/apt-get_install_gcc-4.7-arm-linux-gnueabihf/
# dpkg --add-architecture armhf
# apt-get update
I can now install lots of arm packages, but it didn't allow me to install the needed packages of step 1:
# apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf gcc-4.7-arm-linux-gnueabihf-base gcc-arm-linux-gnueabihf git wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package binutils-arm-linux-gnueabihf
E: Unable to locate package gcc-4.7-arm-linux-gnueabihf-base
E: Couldn't find any package by regex 'gcc-4.7-arm-linux-gnueabihf-base'
E: Unable to locate package gcc-arm-linux-gnueabihf
No idea howto revert the above change to my system :-)
Quote from: JohnS on August 15, 2014, 08:43:51 PM
Might need to edit /etc/apt/sources.list to add
http://www.emdebian.org/debian
John
Thanks for the fast reply. I can't get it to work yet.
My /etc/apt/sources.list now looks like this:
# deb http://ftp.nl.debian.org/debian/ wheezy main
deb http://ftp.nl.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# wheezy-updates, previously known as 'volatile'
deb http://ftp.nl.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.nl.debian.org/debian/ wheezy-updates main contrib non-free
#emdebian for cross compilers:
deb http://www.emdebian.org/debian/ wheezy main contrib non-free
deb-src http://www.emdebian.org/debian/ wheezy main contrib non-free
I have run apt-get update, but it could not find everything:
# apt-get update
Hit http://ftp.nl.debian.org wheezy Release.gpg
Get:1 http://www.emdebian.org wheezy Release.gpg [198 B]
Hit http://ftp.nl.debian.org wheezy-updates Release.gpg
Hit http://ftp.nl.debian.org wheezy Release
Get:2 http://www.emdebian.org wheezy Release [4,789 B]
Ign http://www.emdebian.org wheezy Release
Hit http://ftp.nl.debian.org wheezy-updates Release
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://ftp.nl.debian.org wheezy/main Sources
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.nl.debian.org wheezy/contrib Sources
Hit http://ftp.nl.debian.org wheezy/non-free Sources
Hit http://security.debian.org wheezy/updates/main Sources
Hit http://ftp.nl.debian.org wheezy/main amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib Sources
Hit http://ftp.nl.debian.org wheezy/contrib amd64 Packages
Hit http://security.debian.org wheezy/updates/non-free Sources
Hit http://ftp.nl.debian.org wheezy/non-free amd64 Packages
Hit http://ftp.nl.debian.org wheezy/main armhf Packages
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://ftp.nl.debian.org wheezy/contrib armhf Packages
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
Hit http://ftp.nl.debian.org wheezy/non-free armhf Packages
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
Hit http://ftp.nl.debian.org wheezy/main i386 Packages
Hit http://security.debian.org wheezy/updates/main armhf Packages
Hit http://ftp.nl.debian.org wheezy/contrib i386 Packages
Hit http://ftp.nl.debian.org wheezy/non-free i386 Packages
Hit http://security.debian.org wheezy/updates/contrib armhf Packages
Hit http://ftp.nl.debian.org wheezy/contrib Translation-en
Hit http://security.debian.org wheezy/updates/non-free armhf Packages
Hit http://security.debian.org wheezy/updates/main i386 Packages
Hit http://ftp.nl.debian.org wheezy/main Translation-en
Hit http://security.debian.org wheezy/updates/contrib i386 Packages
Hit http://ftp.nl.debian.org wheezy/non-free Translation-en
Hit http://security.debian.org wheezy/updates/non-free i386 Packages
Hit http://ftp.nl.debian.org wheezy-updates/main Sources
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://ftp.nl.debian.org wheezy-updates/contrib Sources
Hit http://security.debian.org wheezy/updates/main Translation-en
Hit http://ftp.nl.debian.org wheezy-updates/non-free Sources
Hit http://ftp.nl.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Hit http://security.debian.org wheezy/updates/non-free Translation-en
Hit http://ftp.nl.debian.org wheezy-updates/contrib amd64 Packages
Hit http://ftp.nl.debian.org wheezy-updates/non-free amd64 Packages
Get:3 http://ftp.nl.debian.org wheezy-updates/main armhf Packages/DiffIndex [1,471 B]
Hit http://ftp.nl.debian.org wheezy-updates/contrib armhf Packages
Hit http://ftp.nl.debian.org wheezy-updates/non-free armhf Packages
Hit http://ftp.nl.debian.org wheezy-updates/main i386 Packages/DiffIndex
Hit http://ftp.nl.debian.org wheezy-updates/contrib i386 Packages
Hit http://ftp.nl.debian.org wheezy-updates/non-free i386 Packages
Hit http://ftp.nl.debian.org wheezy-updates/contrib Translation-en
Hit http://ftp.nl.debian.org wheezy-updates/main Translation-en/DiffIndex
Hit http://ftp.nl.debian.org wheezy-updates/non-free Translation-en
Get:4 http://www.emdebian.org wheezy/main Sources [20 B]
Get:5 http://www.emdebian.org wheezy/main amd64 Packages [112 kB]
Get:6 http://www.emdebian.org wheezy/main i386 Packages [103 kB]
Err http://www.emdebian.org wheezy/contrib Sources
404 Not Found
Err http://www.emdebian.org wheezy/non-free Sources
404 Not Found
Err http://www.emdebian.org wheezy/contrib amd64 Packages
404 Not Found
Err http://www.emdebian.org wheezy/non-free amd64 Packages
404 Not Found
Err http://www.emdebian.org wheezy/main armhf Packages
404 Not Found
Err http://www.emdebian.org wheezy/contrib armhf Packages
404 Not Found
Err http://www.emdebian.org wheezy/non-free armhf Packages
404 Not Found
Err http://www.emdebian.org wheezy/contrib i386 Packages
404 Not Found
Err http://www.emdebian.org wheezy/non-free i386 Packages
404 Not Found
Ign http://www.emdebian.org wheezy/contrib Translation-en_US
Ign http://www.emdebian.org wheezy/contrib Translation-en
Ign http://www.emdebian.org wheezy/main Translation-en_US
Ign http://www.emdebian.org wheezy/main Translation-en
Ign http://www.emdebian.org wheezy/non-free Translation-en_US
Ign http://www.emdebian.org wheezy/non-free Translation-en
Fetched 222 kB in 6s (34.4 kB/s)
W: GPG error: http://www.emdebian.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5B7720097BB3B58
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/contrib/source/Sources 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/non-free/source/Sources 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/contrib/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/non-free/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/main/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/contrib/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/non-free/binary-armhf/Packages 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/contrib/binary-i386/Packages 404 Not Found
W: Failed to fetch http://www.emdebian.org/debian/dists/wheezy/non-free/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The problem remains:
# apt-get install build-essential u-boot-tools uboot-mkimage binutils-arm-linux-gnueabihf gcc-4.7-arm-linux-gnueabihf-base gcc-arm-linux-gnueabihf git wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package binutils-arm-linux-gnueabihf
E: Unable to locate package gcc-4.7-arm-linux-gnueabihf-base
E: Couldn't find any package by regex 'gcc-4.7-arm-linux-gnueabihf-base'
E: Unable to locate package gcc-arm-linux-gnueabihf
Kind regards,
Cedric
Maybe you should not specify the exact version (4.7 or whatever).
I tried google with
debian (etc)
to find my previous reply but then stopped reading... there were lots more results...
John
Hi Cedric,
I think you should follow the instructions on the page you mentioned.
QuoteI provide compiled versions of gcc-4.7-arm-linux-gnueabihf for i386 and amd64 in my repository. If you have followed the previous paragraphs, nothing should be easier than adding a "deb http://emdebian.org/~thibg/repo/ sid main" line to your sources.list
I hope that helps.
Regards
Klaus
I have worked around the problem by building the kernel on the olimex itself. It takes about 5 hours, but it does work :-)
Kind regards,
cedric