Setting up a native compiling toolchain

Ideas and dreaming will go this forum

dynamic1969
SamyGO Admin
Posts: 62
Joined: Sun Oct 04, 2009 12:35 am

Setting up a native compiling toolchain

Post by dynamic1969 »

Hi,

I am opening up this thread, to consolidate information for a "HowTo" to set up a native toolchain.
We will move this information into our Samsung TV Hacking WIKI, once we have managed to get a working HowTo documented here.

I believe that CowenChicken had already briefly mentioned a possibility, using debootstrap & chroot to run a native toolchain directly on the TV.

Regards
dynamic
dynamic1969
SamyGO Admin
Posts: 62
Joined: Sun Oct 04, 2009 12:35 am

Re: Setting up a native compiling toolchain

Post by dynamic1969 »

Great! This is almost a full HowTO!

Any experience on this, run from a Debian derivate such as Xubuntu ?

Regards
dynamic
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Setting up a native compiling toolchain

Post by erdem_ua »

Problems that I found:

Code: Select all

mkdir -p /dtv/usb/sda2/armel-chroot
#required dir init

mount -t nfs <server>:/armel-chroot /dtv/usb/sda2/armel-chroot
# -o nolock required!

/dtv/usb/sda2/busybox chroot /dtv/usb/sda2/armel-chroot /debootstrap/debootstrap --second-stage
#Gives Error:
#mknod: `//test-dev-null': Operation not permitted
#E: Cannot install into target '/' mounted with noexec or nodev
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Setting up a native compiling toolchain

Post by erdem_ua »

tried first method again on KVM Ubuntu 9.10 with tun/tap interface and I got

Code: Select all

I: Configuring mount...
I: Configuring initscripts...
I: Configuring sysvinit...
W: Failure while configuring required packages.
On TV. Will try second method :)
User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Setting up a native compiling toolchain

Post by erdem_ua »

Code: Select all

I: Base system installed successfully.
Successfully prepared using Debian Lenny i386 NFS server via KVM :D
nbd
Posts: 160
Joined: Wed Jan 13, 2010 12:02 pm

Re: Setting up a native compiling toolchain

Post by nbd »

Hello, I'm getting:

Code: Select all

# $busybox chroot $armel_chroot /debootstrap/debootstrap --second-stage
I: Installing core packages...
W: Failure trying to run:  dpkg --force-depends --install /var/cache/apt/archives/dpkg_1.14.28_armel.deb
dpkg.log says:

1970-01-01 00:42:30 upgrade dpkg 1.14.28 1.14.28
1970-01-01 00:42:30 status half-configured dpkg 1.14.28
1970-01-01 00:42:30 status unpacked dpkg 1.14.28
1970-01-01 00:42:30 status half-installed dpkg 1.14.28
1970-01-01 00:43:03 status unpacked dpkg 1.14.28
1970-01-01 00:43:03 status installed dpkg 1.14.28

Edit: I did chroot and ran

Code: Select all

dpkg --force-depends --install /var/cache/apt/archives/dpkg_1.14.28_armel.deb
It says:

Code: Select all

tar: ./md5sums: time stamp 2010-01-12 21:41:12 is 1263326729.62103 s in the future
tar: ./postrm: time stamp 2010-01-12 21:40:58 is 1263326715.451319 s in the future
tar: ./preinst: time stamp 2010-01-12 21:40:58 is 1263326715.288196 s in the future
tar: ./control: time stamp 2010-01-12 21:41:11 is 1263326728.118406 s in the future
tar: ./conffiles: time stamp 2010-01-12 21:40:58 is 1263326714.957147 s in the future
tar: ./postinst: time stamp 2010-01-12 21:40:58 is 1263326714.80272 s in the future
tar: .: time stamp 2010-01-12 21:41:12 is 1263326728.734681 s in the future
dpkg: regarding .../dpkg_1.14.28_armel.deb containing dpkg, pre-dependency problem:
 dpkg pre-depends on libc6 (>= 2.7-1)
dpkg: warning - ignoring pre-dependency problem !
dpkg: regarding .../dpkg_1.14.28_armel.deb containing dpkg, pre-dependency problem:
 dpkg pre-depends on libgcc1 (>= 1:4.3)
dpkg: warning - ignoring pre-dependency problem !
dpkg: regarding .../dpkg_1.14.28_armel.deb containing dpkg, pre-dependency problem:
 dpkg pre-depends on coreutils (>= 5.93-1)
dpkg: warning - ignoring pre-dependency problem !
dpkg: regarding .../dpkg_1.14.28_armel.deb containing dpkg, pre-dependency problem:
 dpkg pre-depends on lzma
  lzma is not installed.
dpkg: warning - ignoring pre-dependency problem !
(Reading database ... 104 files and directories currently installed.)
Preparing to replace dpkg 1.14.28 (using .../dpkg_1.14.28_armel.deb) ...
Unpacking replacement dpkg ...
dpkg: error processing /var/cache/apt/archives/dpkg_1.14.28_armel.deb (--install):
 error closing/writing `./usr/share/locale/hu/LC_MESSAGES/dpkg.mo': Input/output error
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/dpkg_1.14.28_armel.deb
This is the essential error:
error closing/writing `./usr/share/locale/hu/LC_MESSAGES/dpkg.mo': Input/output error

I got similar closing/writing errors when I tried manually install eg. the libc6 (which by the way is installed in the first stage, I don't get it why it complains)
nbd
Posts: 160
Joined: Wed Jan 13, 2010 12:02 pm

Re: Setting up a native compiling toolchain

Post by nbd »

Hello, I really want this to work, so I have two options:

1) http://franciscobenitezleon.wordpress.c ... mic-koala/

2) someone who has succesfully installed Lenny, does an image of it and makes it available for download.

I'm going to try 1) now.

Post Reply

Return to “[B] Brainstorm”