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
Setting up a native compiling toolchain
-
- SamyGO Admin
- Posts: 62
- Joined: Sun Oct 04, 2009 12:35 am
-
- SamyGO Admin
- Posts: 62
- Joined: Sun Oct 04, 2009 12:35 am
Re: Setting up a native compiling toolchain
Great! This is almost a full HowTO!
Any experience on this, run from a Debian derivate such as Xubuntu ?
Regards
dynamic
Any experience on this, run from a Debian derivate such as Xubuntu ?
Regards
dynamic
- 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
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
- 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
tried first method again on KVM Ubuntu 9.10 with tun/tap interface and I got
On TV. Will try second method
Code: Select all
I: Configuring mount...
I: Configuring initscripts...
I: Configuring sysvinit...
W: Failure while configuring required packages.
- 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
Code: Select all
I: Base system installed successfully.
Re: Setting up a native compiling toolchain
Hello, I'm getting:
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
It says:
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)
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
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
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
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)
Re: Setting up a native compiling toolchain
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.
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.