NSLU2 question
by Adam Miller
I purchased a NSLU2 a couple months ago with hopes to hack on OpenWRT
on it, but as I look around the net more it appears that distros such
as debian, gentoo, and ubuntu, also the BSDs -> netbsd and freebsd are
running on the NSLU2. I was curious if anyone has had any success
running Fedora on the NSLU2 and if so, might there be any
documentation on doing so?
Thank you,
-Adam
--
http://maxamillion.googlepages.com
---------------------------------------------------------
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
14 years
[PATCH 3/3] glibc: Patch tzdata for arm
by Kedar Sovani
Signed-off-by: Lennert Buytenhek <buytenh(a)marvell.com>
Signed-off-by: Kedar Sovani <kedars(a)marvell.com>
---
glibc.spec | 4 +++
tzdata-update.c.arm.patch | 52 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+), 0 deletions(-)
create mode 100644 tzdata-update.c.arm.patch
diff --git a/glibc.spec b/glibc.spec
index 9af5047..cc1c3f3 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -44,6 +44,7 @@ Source3: %{glibcname}-fedora-%{glibcdate}.tar.bz2
Source4: %{glibcname}-ports-%{glibcportsdate}.tar.bz2
Patch0: %{glibcname}-fedora.patch
Patch1: %{name}-ia64-lib64.patch
+Patch2: tzdata-update.c.arm.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes: glibc-profile < 2.4
Provides: ldconfig
@@ -237,6 +238,9 @@ mv %{glibcname}-ports-%{glibcportsdate} ports
%endif
%endif
+%ifarch %{arm}
+%patch2 -p1
+%endif
# A lot of programs still misuse memcpy when they have to use
# memmove. The memcpy implementation below is not tolerant at
# all.
diff --git a/tzdata-update.c.arm.patch b/tzdata-update.c.arm.patch
new file mode 100644
index 0000000..830de33
--- /dev/null
+++ b/tzdata-update.c.arm.patch
@@ -0,0 +1,52 @@
+diff -up glibc-20071017T2029/fedora/tzdata-update.c.orig glibc-20071017T2029/fedora/tzdata-update.c
+--- glibc-20071017T2029/fedora/tzdata-update.c.orig 2007-11-26 16:48:44.000000000 -0500
++++ glibc-20071017T2029/fedora/tzdata-update.c 2007-11-26 16:51:38.000000000 -0500
+@@ -391,6 +391,35 @@ register void *__thread_self __asm ("g7"
+ : inline_syscall_clobbers, "$20", "$21"); \
+ _sc_ret = _sc_0, _sc_err = _sc_19; \
+ }
++#elif defined __arm__ && defined __ARM_EABI__
++# define INTERNAL_SYSCALL_DECL(err) do { } while (0)
++# define INTERNAL_SYSCALL(name, err, nr, args...) \
++ ({ \
++ register int _r0 __asm__("r0"); \
++ register int _nr __asm__("r7"); \
++ LOAD_ARGS_##nr(args) \
++ _nr = __NR_##name; \
++ asm volatile ("swi\t0\t@ syscall " #name "\n\t" \
++ : "=r" (_r0) \
++ : "r" (_nr) ASM_ARGS_##nr \
++ : "memory"); \
++ _r0; })
++# define INTERNAL_SYSCALL_ERROR_P(val, err) \
++ ((unsigned int) (val) >= 0xfffff001u)
++# define ASM_ARGS_0
++# define ASM_ARGS_1 , "r" (_r0)
++# define ASM_ARGS_2 , "r" (_r0), "r" (_r1)
++# define ASM_ARGS_3 , "r" (_r0), "r" (_r1), "r" (_r2)
++# define LOAD_ARGS_0()
++# define LOAD_ARGS_1(r0) \
++ _r0 = (int)r0;
++# define LOAD_ARGS_2(r0, r1) \
++ _r0 = (int)r0; \
++ register int _r1 __asm__("r1") = (int)r1;
++# define LOAD_ARGS_3(r0, r1, r2) \
++ _r0 = (int)r0; \
++ register int _r1 __asm__("r1") = (int)r1; \
++ register int _r2 __asm__("r2") = (int)r2;
+ #endif
+
+ char buffer[32768], data[32768];
+@@ -543,6 +572,12 @@ void __libc_csu_fini (void) { }
+ pid_t __fork (void) { return -1; }
+ char thr_buf[65536];
+
++#if defined __arm__
++/* Prevent pulling in libc-start.o (which also defines
++ * __libc_start_main.) */
++unsigned int __stack_chk_guard = ~0U;
++#endif
++
+ #ifndef __powerpc__
+ int __libc_start_main (int (*main) (int argc, char **argv),
+ int argc, char **argv,
--
1.5.3.3
14 years, 1 month
[PATCH 2/3] glibc: Include support for building armv5tel-redhat-linux-gnueabi
by Kedar Sovani
Signed-off-by: Kedar Sovani <kedars(a)marvell.com>
---
glibc.spec | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/glibc.spec b/glibc.spec
index 72ccc5f..9af5047 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -25,7 +25,7 @@
Summary: The GNU libc libraries
Name: glibc
Version: 2.9.90
-Release: 19
+Release: 19.fa1
# GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
# Things that are linked directly into dynamically linked programs
# and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@@ -307,8 +307,10 @@ GCC="gcc -m64"
GXX="g++ -m64"
%endif
+%ifnarch %{arm}
#BuildFlags="$BuildFlags -DNDEBUG=1 -fasynchronous-unwind-tables"
BuildFlags="$BuildFlags -fasynchronous-unwind-tables"
+%endif
EnableKernel="--enable-kernel=%{enablekernel}"
echo "$GCC" > Gcc
AddOns=`echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkaio\|powerpc-cpu\)\( \|$\)!!g;s! \+$!!;s! !,!g;s!^!,!;/^,\*$/d'`
@@ -329,8 +331,14 @@ build_CFLAGS="$BuildFlags -g -O3 $*"
CC="$GCC" CXX="$GXX" CFLAGS="$build_CFLAGS" ../configure --prefix=%{_prefix} \
--enable-add-ons=nptl$AddOns --without-cvs $EnableKernel \
--with-headers=%{_prefix}/include --enable-bind-now \
- --with-tls --with-__thread --build %{nptl_target_cpu}-redhat-linux \
+ --with-tls --with-__thread \
+%ifnarch %{arm}
+ --build %{nptl_target_cpu}-redhat-linux \
--host %{nptl_target_cpu}-redhat-linux \
+%else
+ --build %{nptl_target_cpu}-redhat-linux-gnueabi \
+ --host %{nptl_target_cpu}-redhat-linux-gnueabi \
+%endif
--disable-profile --enable-experimental-malloc --enable-nss-crypt
make %{?_smp_mflags} -r CFLAGS="$build_CFLAGS" PARALLELMFLAGS=-s
@@ -1020,6 +1028,10 @@ rm -f *.filelist*
%endif
%changelog
+* Mon Apr 27 2009 Kedar Sovani <kedars(a)marvell.com> 2.9.90-19.fa1
+ - Include support for buildling on arm*-redhat-linux-gnueabi
+ - include ports
+
* Thu Apr 16 2009 Jakub Jelinek <jakub(a)redhat.com> 2.9.90-19
- update from trunk
- fix dlopen from statically linked binaries (#495830)
--
1.5.3.3
14 years, 1 month
[PATCH 1/3] glibc: Include glibc ports
by Kedar Sovani
Move forward to F11's glibc.
Signed-off-by: Kedar Sovani <kedars(a)marvell.com>
---
glibc.spec | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/glibc.spec b/glibc.spec
index 84a323b..72ccc5f 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1,4 +1,5 @@
%define glibcdate 20090416T1610
+%define glibcportsdate 20090429
%define glibcname glibc
%define glibcsrcdir glibc-20090416T1610
%define glibc_release_tarballs 0
@@ -18,6 +19,7 @@
%define buildpower6 0
%endif
%define rtkaioarches %{ix86} x86_64 ia64 ppc ppc64 s390 s390x
+%define portsarches %{arm}
%define debuginfocommonarches %{ix86} alpha alphaev6 sparc sparcv9 sparcv9v sparc64 sparc64v
%define _unpackaged_files_terminate_build 0
Summary: The GNU libc libraries
@@ -39,6 +41,7 @@ Source2: %(echo %{glibcsrcdir} | sed s/glibc-/glibc-libidn-/).tar.bz2
%define glibc_release_unpack -a1 -a2
%endif
Source3: %{glibcname}-fedora-%{glibcdate}.tar.bz2
+Source4: %{glibcname}-ports-%{glibcportsdate}.tar.bz2
Patch0: %{glibcname}-fedora.patch
Patch1: %{name}-ia64-lib64.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -225,7 +228,8 @@ package or when debugging this package.
%endif
%prep
-%setup -q -n %{glibcsrcdir} %{glibc_release_unpack} -a3
+%setup -q -n %{glibcsrcdir} %{glibc_release_unpack} -a3 -a4
+mv %{glibcname}-ports-%{glibcportsdate} ports
%patch0 -E -p1
%ifarch ia64
%if "%{_lib}" == "lib64"
@@ -311,6 +315,9 @@ AddOns=`echo */configure | sed -e 's!/configure!!g;s!\(linuxthreads\|nptl\|rtkai
%ifarch %{rtkaioarches}
AddOns=,rtkaio$AddOns
%endif
+%ifarch %{portsarches}
+AddOns=,ports$AddOns
+%endif
build_nptl()
{
--
1.5.3.3
14 years, 1 month
NetworkManager on f10
by Andy Green
Hi -
I have been able to create packages now down on the iMX31 which is a bit
slow for larger packages but it's fine. I'm starting to get my head
around not having the expected constraints and limitations of a "funny"
rootfs with uclibc and so on and it's quite exciting. At 532MHz and
with DDR SDRAM it doesn't hurt to have full bash and so on.
Soon I'll have to bring up a Marvell 8686-based WLAN device over SDIO,
consistent with this new feeling of freedom down on the device I was
looking at using a headless NetworkManager to control that and also deal
with Ethernet over USB gadget when that is active. But at the moment,
in the Koji f10 repo, NetworkManager is not built.
I remembered Lennert has a Koji for Arm stuff I read so I went and
looked at the status
http://fedora-arm.wantstofly.org/koji/getfile?taskID=13360&name=root.log
It seems that it found an old wpa_supplicant that time, but there is a
rebuilt wpa_supplicant now that uses libcrypto.so.7 from f10 openssl.
So I guess this will get retried at some point and can succeed? It
seems that you guys must be quite close to a full package set currently.
Ntp also has some funny selinux-related issue its seems
http://fedora-arm.wantstofly.org/koji/getfile?taskID=23501&name=root.log
What's the general status of rebuilding these?
-Andy
14 years, 1 month
Yum trouble
by Andy Green
Hi -
I am really pleased so far at the results of using the Fedora 10
armv5tel stuff on an i.MX31 embedded device.
I just got network routing set up over a Ethernet gadget USB OTG device,
and I found yum doesn't seem to work somehow.
I can tcpdump the PC side of the Ethernet gadget link and I see that it
is getting the right URL from the mirrorlist server
12:44:19.105231 IP xi.wantstofly.org.http > 10.7.0.1.43521: P 1:294(293)
ack 158 win 858 <nop,nop,timestamp 155371772 179707>
0x0000: 4500 0159 4d8b 4000 3406 77c4 5065 25e3 E..YM.@.4.w.Pe%.
0x0010: 0a07 0001 0050 aa01 7f8d 8576 a708 a2ad .....P.....v....
0x0020: 8018 035a 9160 0000 0101 080a 0942 c8fc ...Z.`.......B..
0x0030: 0002 bdfb 4854 5450 2f31 2e31 2032 3030 ....HTTP/1.1.200
0x0040: 204f 4b0d 0a44 6174 653a 2057 6564 2c20 .OK..Date:.Wed,.
0x0050: 3232 2041 7072 2032 3030 3920 3130 3a34 22.Apr.2009.10:4
0x0060: 363a 3234 2047 4d54 0d0a 5365 7276 6572 6:24.GMT..Server
0x0070: 3a20 4170 6163 6865 2f32 2e32 2e33 2028 :.Apache/2.2.3.(
0x0080: 4365 6e74 4f53 290d 0a58 2d50 6f77 6572 CentOS)..X-Power
0x0090: 6564 2d42 793a 2050 4850 2f35 2e31 2e36 ed-By:.PHP/5.1.6
0x00a0: 0d0a 436f 6e74 656e 742d 4c65 6e67 7468 ..Content-Length
0x00b0: 3a20 3130 310d 0a43 6f6e 6e65 6374 696f :.101..Connectio
0x00c0: 6e3a 2063 6c6f 7365 0d0a 436f 6e74 656e n:.close..Conten
0x00d0: 742d 5479 7065 3a20 7465 7874 2f68 746d t-Type:.text/htm
0x00e0: 6c3b 2063 6861 7273 6574 3d55 5446 2d38 l;.charset=UTF-8
0x00f0: 0d0a 0d0a 6874 7470 3a2f 2f66 7470 2e6c ....http://ftp.l
0x0100: 696e 7578 2e6f 7267 2e75 6b2f 7075 622f inux.org.uk/pub/
0x0110: 6c69 6e75 782f 6172 6d2f 6665 646f 7261 linux/arm/fedora
0x0120: 2f70 7562 2f66 6564 6f72 612f 6c69 6e75 /pub/fedora/linu
0x0130: 782f 7265 6c65 6173 6573 2f31 302f 4576 x/releases/10/Ev
0x0140: 6572 7974 6869 6e67 2f61 726d 2f6f 732f erything/arm/os/
0x0150: 5061 636b 6167 6573 0a Packages.
... and it does seem to get a non-empty repo file from there. But,
nothing is ever found by yum...
-bash-3.2# yum clean all
Cleaning up Everything
-bash-3.2# yum install telnet
fedora
| 951 B 00:00
fedora/primary
| 621 kB 00:03
fedora
2036/2036
updates
| 951 B 00:00
updates/primary
| 195 B 00:00
Setting up Install Process
Parsing package install arguments
No package tcpdump available.
Nothing to do
-bash-3.2# rpm -q tcpdump
package tcpdump is not installed
It doesn't help to set a specific baseurl either
baseurl=http://ftp.linux.org.uk/pub/linux/arm/fedora/pub/fedora/linux/releases/10/Everything/arm/os/Packages/
I can see this example telnet package sitting there if I visit that URL
with a browser.
Any ideas what I am missing?
-Andy
14 years, 1 month
plymouth
by Carl Sherratt
Hi,
Can anyone tell me which rpm I need for fedora 10 to install plymouth?
Without it I can only reach prompt at user level 1
/bin/sh: line 1: plymouth: command not found
Many Thanks.
Carl.
--
Syphan Technologies
True 10G IDS
D +441756631275
M +447932773346
E csherratt(a)syphan.com
14 years, 1 month
[Fwd: Re: [fedora-arm] F10 build errors - clashing initscripts and alsa-utils ?]
by Jitesh Shah
Forwarding to the list as well ....
-------- Forwarded Message --------
> From: Jitesh Shah <jiteshs(a)marvell.com>
> To: David Timms <dtimms(a)iinet.net.au>
> Subject: Re: [fedora-arm] F10 build errors - clashing initscripts and
> alsa-utils ?
> Date: Wed, 08 Apr 2009 11:05:56 +0530
>
> Hi David,
> Currently, we are trying to boot-strap F-10 on ARM. So, we're
> mass-building F-10 packages. The dependency issue is most probably due
> to that. (alsa-utils is not yet built on F-10 so, it is using the
> inherited package. Once, we have alsa-utils for F-10, I don't suppose
> we'll see the problem)
>
> Cheers,
> Jitesh
>
>
> On Tue, 2009-04-07 at 23:24 +1000, David Timms wrote:
> > Hi there,
> >
> > Noticed a recent build failure with a fedora package of mine: rakarrack,
> > that had an attempted arm build:
> > http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=11262
> >
> > 1. This is a real time gui audio dsp application, so I guess someone
> > would need working X and alsa sound and jack-audio-connection-kit, and
> > fairly decent CPU speed to make use of this package even if it did
> > compile. Is it worth looking at this at this stage ?
> >
> > 2. The error from root.log seems to be because of:
> > =====
> > DEBUG backend.py:561: /usr/bin/yum --installroot
> > /var/lib/mock/dist-f10-build-3424-1358/root/ resolvedep 'alsa-utils'
> > 'libjpeg-devel' 'libXpm-devel' 'jack-audio-connection-kit-devel'
> > 'desktop-file-utils' 'fltk-devel' 'libpng-devel' 'alsa-lib-devel'
> > DEBUG util.py:280: Executing command: /usr/bin/yum --installroot
> > /var/lib/mock/dist-f10-build-3424-1358/root/ resolvedep 'alsa-utils'
> > 'libjpeg-devel' 'libXpm-devel' 'jack-audio-connection-kit-devel'
> > 'desktop-file-utils' 'fltk-devel' 'libpng-devel' 'alsa-lib-devel'
> > DEBUG util.py:256: 0:alsa-utils-1.0.15-1.fc8.armv5tel
> > DEBUG util.py:256: 0:libjpeg-devel-6b-43.fc10.armv5tel
> > DEBUG util.py:256: 0:libXpm-devel-3.5.7-4.fc10.armv5tel
> > DEBUG util.py:256:
> > 0:jack-audio-connection-kit-devel-0.109.2-3.fc10.armv5tel
> > DEBUG util.py:256: 0:desktop-file-utils-0.15-3.fc10.armv5tel
> > DEBUG util.py:256: 0:fltk-devel-1.1.9-1.fc10.armv5tel
> > DEBUG util.py:256: 2:libpng-devel-1.2.31-2.fc10.armv5tel
> > DEBUG util.py:256: 0:alsa-lib-devel-1.0.18-6.rc3.fc10.armv5tel
> > DEBUG util.py:319: Child returncode was: 0
> > DEBUG backend.py:561: /usr/bin/yum --installroot
> > /var/lib/mock/dist-f10-build-3424-1358/root/ install 'alsa-utils'
> > 'libjpeg-devel' 'libXpm-devel' 'jack-audio-connection-kit-devel'
> > 'desktop-file-utils' 'fltk-devel' 'libpng-devel' 'alsa-lib-devel'
> > DEBUG util.py:280: Executing command: /usr/bin/yum --installroot
> > /var/lib/mock/dist-f10-build-3424-1358/root/ install 'alsa-utils'
> > 'libjpeg-devel' 'libXpm-devel' 'jack-audio-connection-kit-devel'
> > 'desktop-file-utils' 'fltk-devel' 'libpng-devel' 'alsa-lib-devel'
> > DEBUG util.py:256: initscripts-8.86-1.armv5tel from installed has
> > depsolving problems
> > DEBUG util.py:256: --> initscripts conflicts with alsa-utils
> > DEBUG util.py:256: Error: initscripts conflicts with alsa-utils
> > DEBUG util.py:319: Child returncode was: 1
> > DEBUG backend.py:549: umount -n
> > /var/lib/mock/dist-f10-build-3424-1358/root/proc
> > =====
> > I haven't actually gone any further to confirm that, but it seems like
> > an issue with one of the dependent packages ?
> > Is initscripts customized for arm builds, or should such a build problem
> > show up in x86 etc Fedora builds as well ?
> >
> > Cheers, David Timms.
> >
> > _______________________________________________
> > fedora-arm mailing list
> > fedora-arm(a)redhat.com
> > https://www.redhat.com/mailman/listinfo/fedora-arm
14 years, 1 month