Jump to content

[RED] build-Umgebung Image - /etc/apt/sources.list


Recommended Posts

Ich wollte mir ein eigenes Images erstellen, komme aber leider nicht über das ./prepare_host hinweg. Ursache scheinen fehlende Repositories in der /etc/apt/sources.list des debian build hosts zu sein.

 

Wäre es möglich eine Liste der Einträge, die für das Bauen notwendig sind zu veröffentlichen, oder habe ich die übersehen?

 

Und:

Habe ich die falsche (veraltete?) Debian Version: wheezy (stable)

Muss ich auf jessie oder sid upgraden?

 

Danke im Voraus

Link zu diesem Kommentar
Share on other sites

Das Skript findet Pakete (u. a. libc6 RT und NPM (java node.js?)) nicht!

 

Meine Umgebung: wheezy (debian 7.8, stable)

 

Fehler siehe Ende Code ...

 

Linux tinkerforge 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 12 23:20:29 2015 from 192.168.84.210
mabri@tinkerforge:~$ 
mabri@tinkerforge:~$ 
mabri@tinkerforge:~$ sudo su
root@tinkerforge:/home/mabri# cat /etc/debian_version 
7.8
root@tinkerforge:/home/mabri# cat /etc/apt/sources.list
# 

# deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official amd64 NETINST Binary-1 20141018-13:04]/ wheezy main

#deb cdrom:[Debian GNU/Linux 7.7.0 _Wheezy_ - Official amd64 NETINST Binary-1 20141018-13:04]/ wheezy main

deb http://ftp.de.debian.org/debian/ wheezy main non-free contrib
deb-src http://ftp.de.debian.org/debian/ wheezy main non-free contrib

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.de.debian.org/debian/ wheezy-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free


# wheezy backports
deb http://http.debian.net/debian wheezy-backports main contrib non-free
root@tinkerforge:/home/mabri# cd  /usr/src/tf/red-brick/image/
root@tinkerforge:/usr/src/tf/red-brick/image# ./prepare-host.sh 
+ . ./utilities.sh
++ pwd
+ BASE_DIR=/usr/src/tf/red-brick/image
+ CONFIG_DIR=/usr/src/tf/red-brick/image/config
+ . /usr/src/tf/red-brick/image/config/common.conf
++ PATCHES_DIR=/usr/src/tf/red-brick/image/patches
++ TOOLS_DIR=/usr/src/tf/red-brick/image/tools
++ SOURCE_DIR=/usr/src/tf/red-brick/image/source
++ BUILD_DIR=/usr/src/tf/red-brick/image/build
++ APTCACHER_DIR=/usr/src/tf/red-brick/image/build/apt-cacher
++ ROOTFS_DIR=/usr/src/tf/red-brick/image/build/root-fs
++ MOUNT_DIR=/usr/src/tf/red-brick/image/build/mnt
++ OUTPUT_DIR=/usr/src/tf/red-brick/image/build/output
++ REQUIRED_HOST_PACKAGES='binfmt-support build-essential gcc-multilib git-core libstdc++6:i386 libusb-1.0-0 libusb-1.0-0-dev mount multistrap pkg-config pv python qemu qemu-user-static rsync sed tar u-boot-tools wget npm'
++ QEMU_BIN=/usr/bin/qemu-arm-static
++ TC_PREFIX=arm-linux-gnueabihf-
++ TC_DIR_NAME=gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux
++ TC_FILE_NAME=gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.bz2
++ TC_URL=https://launchpad.net/linaro-toolchain-binaries/trunk/2013.10/+download/gcc-linaro-arm-linux-gnueabihf-4.8-2013.10_linux.tar.bz2
++ COREUTILS_DIR_NAME=coreutils-8.21
++ COREUTILS_FILE_NAME=coreutils-8.21.tar.xz
++ COREUTILS_URL=http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz
++ ADVCP_CMD=/usr/src/tf/red-brick/image/tools/coreutils-8.21/src/cp
++ UBOOT_GIT_URL=https://github.com/Tinkerforge/red-brick-u-boot-sunxi.git
++ UBOOT_GIT_BRANCH=red-brick
++ UBOOT_SRC_DIR=/usr/src/tf/red-brick/image/source/red-brick-u-boot-sunxi
++ KERNEL_GIT_URL=https://github.com/Tinkerforge/red-brick-linux-sunxi.git
++ KERNEL_GIT_BRANCH=red-brick
++ KERNEL_SRC_DIR=/usr/src/tf/red-brick/image/source/red-brick-linux-sunxi
++ KERNEL_HEADER_INCLUDE_DIR=/usr/src/tf/red-brick/image/source/red-brick-linux-sunxi/include
++ KERNEL_HEADER_USR_DIR=/usr/src/tf/red-brick/image/source/red-brick-linux-sunxi/usr
++ SUNXI_TOOLS_GIT_URL=https://github.com/Tinkerforge/red-brick-sunxi-tools.git
++ SUNXI_TOOLS_GIT_BRANCH=red-brick
++ SUNXI_TOOLS_SRC_DIR=/usr/src/tf/red-brick/image/source/red-brick-sunxi-tools
++ HOSTAPD_WPA_SUPPLICANT_NAME=wpa_supplicant_hostapd
++ HOSTAPD_WPA_SUPPLICANT_VERSION=_v4.0.2_9000.20130911
++ HOSTAPD_WPA_SUPPLICANT_EXTENSION=.tar.bz2
++ . /usr/src/tf/red-brick/image/config/user.conf
+++ TZDATA_AREA=Europe
+++ TZDATA_ZONE=Berlin
+++ LOCALE=en_US.UTF-8
+++ LANGUAGE=en_US
+++ LOCALE_CHARSET='en_US.UTF-8 UTF-8'
+++ KB_MODEL=pc105
+++ KB_LAYOUT=de
+++ KB_VARIANT=
+++ KB_OPTIONS=
+++ KB_BACKSPACE=guess
++ . /usr/src/tf/red-brick/image/config/developer.conf
+++ CLEAN_BEFORE_COMPILE=yes
+ report_info 'Update package index files'
+ echo -e '\nInfo: Update package index files\n'

Info: Update package index files

+ sudo apt-get update
Get:1 http://http.debian.net wheezy-backports Release.gpg [836 B]       
Hit http://security.debian.org wheezy/updates Release.gpg                              
Hit http://security.debian.org wheezy/updates Release       
Hit http://security.debian.org wheezy/updates/main Sources                                
Hit http://security.debian.org wheezy/updates/contrib Sources                                             
Hit http://security.debian.org wheezy/updates/non-free Sources                                                        
Get:2 http://http.debian.net wheezy-backports Release [147 kB]                                            
Hit http://security.debian.org wheezy/updates/main amd64 Packages                 
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages                                         
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages                                   
Hit http://security.debian.org wheezy/updates/contrib Translation-en                                     
Hit http://security.debian.org wheezy/updates/main Translation-en                                              
Hit http://security.debian.org wheezy/updates/non-free Translation-en                                             
Hit http://http.debian.net wheezy-backports/main amd64 Packages/DiffIndex                 
Hit http://http.debian.net wheezy-backports/non-free amd64 Packages/DiffIndex                           
Hit http://http.debian.net wheezy-backports/contrib amd64 Packages/DiffIndex                            
Hit http://http.debian.net wheezy-backports/contrib Translation-en/DiffIndex      
Hit http://http.debian.net wheezy-backports/main Translation-en/DiffIndex         
Hit http://http.debian.net wheezy-backports/non-free Translation-en/DiffIndex
Hit http://ftp.de.debian.org wheezy Release.gpg    
Get:3 http://ftp.de.debian.org wheezy-updates Release.gpg [836 B]
Hit http://ftp.de.debian.org wheezy Release
Get:4 http://ftp.de.debian.org wheezy-updates Release [124 kB]
Hit http://ftp.de.debian.org wheezy/main Sources
Hit http://ftp.de.debian.org wheezy/non-free Sources
Hit http://ftp.de.debian.org wheezy/contrib Sources
Hit http://ftp.de.debian.org wheezy/main amd64 Packages
Hit http://ftp.de.debian.org wheezy/non-free amd64 Packages
Hit http://ftp.de.debian.org wheezy/contrib amd64 Packages
Hit http://ftp.de.debian.org wheezy/contrib Translation-en
Hit http://ftp.de.debian.org wheezy/main Translation-en
Hit http://ftp.de.debian.org wheezy/non-free Translation-en
Get:5 http://ftp.de.debian.org wheezy-updates/main Sources [1,805 B]
Get:6 http://ftp.de.debian.org wheezy-updates/contrib Sources [14 B]
Get:7 http://ftp.de.debian.org wheezy-updates/non-free Sources [14 B]
Hit http://ftp.de.debian.org wheezy-updates/main amd64 Packages/DiffIndex
Get:8 http://ftp.de.debian.org wheezy-updates/contrib amd64 Packages [14 B]
Get:9 http://ftp.de.debian.org wheezy-updates/non-free amd64 Packages [14 B]
Get:10 http://ftp.de.debian.org wheezy-updates/contrib Translation-en [14 B]
Hit http://ftp.de.debian.org wheezy-updates/main Translation-en/DiffIndex
Get:11 http://ftp.de.debian.org wheezy-updates/non-free Translation-en [14 B]
Fetched 274 kB in 2s (104 kB/s)              
Reading package lists... Done
+ report_info 'Installing tools (requires root access)'
+ echo -e '\nInfo: Installing tools (requires root access)\n'

Info: Installing tools (requires root access)

+ sudo apt-get install -y binfmt-support build-essential gcc-multilib git-core libstdc++6:i386 libusb-1.0-0 libusb-1.0-0-dev mount multistrap pkg-config pv python qemu qemu-user-static rsync sed tar u-boot-tools wget npm
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libstdc++6
E: Couldn't find any package by regex 'libstdc++6'
E: Unable to locate package npm
root@tinkerforge:/usr/src/tf/red-brick/image#

Link zu diesem Kommentar
Share on other sites

npm ist der Node.js Package Manager, denn scheint es wohl nur bei Ubuntu direkt als Package zu geben. Das müssen wir wohl behandeln.

 

Bis dahin gibt es hier für Debian eine Anleitung:

 

https://github.com/joyent/node/wiki/installing-node.js-via-package-manager

 

libstdc++6 ist nicht libc6, sondern die C++ Standard Library. Villeicht ist das Problem, dass die für i386 installiert werden soll.

 

Was gibt das hier bei dir aus?

 

dpkg --print-foreign-architectures

 

Wenn da i386 nicht bei ist kannst du es so hinzufügen:

 

dpkg --add-architecture i386

 

Dann sollte es gehen.

Link zu diesem Kommentar
Share on other sites

Architektur ist i386

 

root@tinkerforge:/usr/src/tf/red-brick/image# dpkg --print-foreign-architectures
i386

 

unabhängig davon haben wir die Pakete manuel (node.js, c++ stdc) nachinstalliert und prepare-host und upate-sources sind durchgelaufen.

 

Dann haben wir noch zlib1g(-dev) nachinstalliert, da es sonst zu Fehlern ("... file not found ...") für libz.so.1 beim compilieren kommt.

 

Aktuell läuft der build process (bash ./compile-source fast)... schauen wir mal ;-)

 

 

Link zu diesem Kommentar
Share on other sites

Okay, das prepare-host.sh Script fügt jetzt automatisch i386 als Architektur hinzu.

 

Die i386 Pakete sind für den armhf Cross-Compiler, darunter fällt auch das zlib1g Pakete. Das habe ich jetzt zur Liste der benötigen Pakete hinzugefügt.

 

Node.js und NPM ist etwas problematisch. Das ist zu verschieden zwischen Ubuntu und Debian und den einzelnen Debian Versionen. Daher habe ich das jetzt aus der Liste der benötigen Pakete entfernt und in der readme.txt erklärt, dass man das bitte manuell installieren möge, plus Anleitung wie das für Ubuntu und Debian geht.

 

Danke für das Finden dieser ganzen Probleme. Wenn du noch mehr findest immer nur her damit :)

Link zu diesem Kommentar
Share on other sites

Hallo,

 

Danke für Hilfe und Feedback!

 

> Danke für das Finden dieser ganzen Probleme. Wenn du noch mehr findest immer nur her damit

ok - bleibe am Ball ;-)

 

Habe aktuelle ein Image erstellen können und werde das nun testen!

Bei Bedarf biete ich auch an, "custom images" zur Vefügung zu stellen!

Aber erst teste ich mal, ob ich die modifizierten images nutzen kann ;-)

 

 

<UPDATE>

das nun erstellte image funzt!

</UPDATE>

Link zu diesem Kommentar
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.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...