Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Wed Dec 13, 2017 8:00 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 72 posts ]  Go to page Previous 1 2 3 4 5 Next
Author Message
 Post subject: Re: Genlink broken?
PostPosted: Sun Sep 14, 2008 6:06 pm 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
As for now I am unable to boot Genlink without errors:
Code:
INIT: version 2.86 booting  

   OpenRC 0.2.5 is starting up Gentoo Linux (armv5tel)   

Press I to enter interactive boot mode     

 * Mounting /proc ... [ ok ]
 * Mounting /sys ...  [ ok ]
 * Mounting /dev ...  [ ok ]
 * Starting udevd ... [ ok ]
 * Populating /dev with existing devices through uevents ... [ ok ]
 * Waiting for uevents to be processed ...   [ ok ]
 * Mounting /dev/pts ...  [ ok ]
 * Mounting /dev/shm ...  [ ok ]
 * Device initiated services:* Caching service dependencies ...   [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Setting system clock using the hardware clock [UTC] ... [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Autoloaded 0 module(s)   
 * Caching service dependencies ...   [ ok ]
 * Checking local filesystems  ...    [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Updating /etc/mtab ...    [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Mounting local filesystems ...     [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Setting hostname to GenLSPro ...   [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Configuring kernel parameters ...  [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Creating user login records ...    [ ok ]
 * Cleaning /var/run ...  [ ok ]
 * Wiping /tmp directory ... [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Starting Linkstation/Kurobox/Terastation micro controller daemon ...  [ ok ]
 * Caching service dependencies ...   [ ok ]
 * Bringing up interface lo
 *   Caching network module dependencies   
sh: /lib/rc/net/*.sh: No such file or directory   
/etc/init.d/net.lo: line 258: /lib/rc/init.d/nettree: Read-only file system   
/etc/init.d/net.lo: line 272: /lib/rc/init.d/nettree: Read-only file system   
/etc/init.d/net.lo: line 284: /lib/rc/init.d/nettree: No such file or directory
INIT: Entering runlevel: 3 
 * Caching service dependencies ... 
fopen `/lib/rc/init.d/deptree': Read-only file system     
fopen `/lib/rc/init.d/depconfig': Read-only file system   
 * Failed to update the dependency tree      [ !! ]
 * rc: failed to create stopping dir `/lib/rc/init.d/rc.stopping': Read-only file system     
INIT: cannot execute "/sbin/agetty" 
INIT: cannot execute "/sbin/agetty" 
INIT: cannot execute "/sbin/agetty" 
INIT: cannot execute "/sbin/agetty" 
INIT: Id "s0" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel

Suggestions are welcome.


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Sun Sep 14, 2008 7:59 pm 
Offline
Developer
User avatar

Joined: Wed Nov 29, 2006 11:27 am
Posts: 95
Location: Germany
LaitrKeiows wrote:
As for now I am unable to boot Genlink without errors:
Code:
[...]
 *   Caching network module dependencies   
sh: /lib/rc/net/*.sh: No such file or directory   
/etc/init.d/net.lo: line 258: /lib/rc/init.d/nettree: Read-only file system   
/etc/init.d/net.lo: line 272: /lib/rc/init.d/nettree: Read-only file system   
/etc/init.d/net.lo: line 284: /lib/rc/init.d/nettree: No such file or directory
INIT: Entering runlevel: 3 
 * Caching service dependencies ... 
fopen `/lib/rc/init.d/deptree': Read-only file system     
fopen `/lib/rc/init.d/depconfig': Read-only file system   
 * Failed to update the dependency tree      [ !! ]
 * rc: failed to create stopping dir `/lib/rc/init.d/rc.stopping': Read-only file system     
INIT: cannot execute "/sbin/agetty" 
INIT: cannot execute "/sbin/agetty" 
INIT: cannot execute "/sbin/agetty" 
INIT: cannot execute "/sbin/agetty" 
INIT: Id "s0" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel

Suggestions are welcome.
This read-only file system message is looking like the cause of all troubles. How did it occur?


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 4:07 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
Zoolook wrote:
This read-only file system message is looking like the cause of all troubles. How did it occur?

Yes, it becomes read-only after starting micro-evtd.

Edit: After disabling micro-evtd, commenting microapl from local_start and fixing date and time, I was able to boot without errors.

Thanks!

Code:
 * Starting local ...                                                                                               
ata2: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen                                                 
ata2: edma_err_cause=00000020 pp_flags=00000003, SError=00180000                                                   
ata2: SError: { 10B8B Dispar }                                                                                     
ata2: hard resetting link                                                                                           
ata2: SATA link down (SStatus 0 SControl 300)                                                                       
ata2: hard resetting link                                                                                           
ata2: SATA link down (SStatus 0 SControl 300)                                                                       


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 9:52 am 
Offline
Developer
User avatar

Joined: Wed Nov 29, 2006 11:27 am
Posts: 95
Location: Germany
LaitrKeiows wrote:
Zoolook wrote:
This read-only file system message is looking like the cause of all troubles. How did it occur?

Yes, it becomes read-only after starting micro-evtd.

Edit: After disabling micro-evtd, commenting microapl from local_start and fixing date and time, I was able to boot without errors.

Thanks!
I was just about to say that micro_evtd might not play nice with your specific box, while you edited your message :D. Well, this is good news then, and also good to know that on the linkstation mini the micro_evtd and microapl should be disabled, I'll add that to the wiki after you'll confirm that otherwise, everything else is working. I already corrected the bugs harakiri told me about and will soon upload an updated image. As of commenting the microapl call from /etc/conf.d/local, harakiri also mentioned it makes a long beep (which it also does on my LSPro, but apparently only after upgrading some package, maybe micro_evtd itself, as it was supposed to just play an "i'm here" melody, which it did before and I did not change that line). Will have to ask tarpman and/or avtobiff if they know something about what change could have caused this (maybe your read-only issue, too, or you just plain don't need such a deamon to prevent the linkstation mini from shutting down?).


Top
   
 Post subject: Layman with subversion
PostPosted: Mon Sep 15, 2008 9:58 am 
Offline
Newbie

Joined: Thu Sep 04, 2008 7:41 am
Posts: 20
I had a hard time getting subversion (needed by layman) to work, but I managed finally.
Although my USE flags were ok, it refused to compile with support for http/https URL schemes. (USE=webdav-neon ...)
In short, following the configure/compile output I noticed subversion 1.5.0 refused to add support for ra_dav because Neon had to be exactly version 0.28.1 and installed version was already at 0.28.3.
Lowering the Neon version to 0.28.1 was impossbiel because it had already become unavailable.
So I unmasked subversion 1.5.1 and now it works.
Code:
 echo "dev-util/subversion **" >> /etc/portage/package.keywords/common


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 10:08 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
Code:
LSmini ~ # /00-post_1st_boot/init_portage.sh
Started post-1st-boot portage initialization job at Wed Aug  3 06:55:01 Local time zone must be set--see zic manual page 2022


Creating directories under "/mnt/xtra" and "/mnt/share" needed by gentoo...
Copying orion5x portage profile link...
Populating portage for the first time...
!!! Unable to parse profile: '/etc/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/default/linux/arm/2008.0/server' not found: '/mnt/xtra/gentoo/portage_overlays/layman/orion5x/profiles/orion5x/parent'
[Errno 2] No such file or directory: '/usr/portage_overlays/layman/make.conf' in /etc/make.conf
Configuring compiler...
Also there is a number of errors when I init portage.
Code:
LSmini ~ # emerge @system --getbinpkgonly --usepkgonly
!!! Unable to parse profile: '/etc/make.profile'
!!! ParseError: Parent '/usr/portage/profiles/default/linux/arm/2008.0/server' not found: '/mnt/xtra/gentoo/portage_overlays/layman/orion5x/profiles/orion5x/parent'
[Errno 2] No such file or directory: '/usr/portage_overlays/layman/make.conf' in /etc/make.conf


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 10:25 am 
Offline
Newbie

Joined: Thu Sep 04, 2008 7:41 am
Posts: 20
comment out the line "source /usr/portage_overlays/layman/make.conf" until you have layman installed and added the orion5x overlay


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 10:34 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
harakiri wrote:
comment out the line "source /usr/portage_overlays/layman/make.conf" until you have layman installed and added the orion5x overlay

Yes, it worked.
Code:
LSmini ~ # wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2
LSmini ~ # cd /usr/
LSmini usr # time tar xjf ~/portage-latest.tar.bz2

Emerging system now.


Top
   
PostPosted: Mon Sep 15, 2008 11:33 am 
Offline
Developer
User avatar

Joined: Wed Nov 29, 2006 11:27 am
Posts: 95
Location: Germany
harakiri wrote:
I had a hard time getting subversion (needed by layman) to work, but I managed finally.
Although my USE flags were ok, it refused to compile with support for http/https URL schemes. (USE=webdav-neon ...)
In short, following the configure/compile output I noticed subversion 1.5.0 refused to add support for ra_dav because Neon had to be exactly version 0.28.1 and installed version was already at 0.28.3.
Lowering the Neon version to 0.28.1 was impossbiel because it had already become unavailable.
So I unmasked subversion 1.5.1 and now it works.
Code:
 echo "dev-util/subversion **" >> /etc/portage/package.keywords/common
Ok, this is more of a question of personal taste and Gentoo-specifics... For instance, in the new image I unmaksed layman to automatically pull in subversion, and also disabled the apache2 USE flag for subversion, to reduce some of the dependencies pulled in, but anyone should adapt that to its needs...
It might be useful though to establish (based on discussions like this one) an useful set of global initial USE flags for /etc/make.conf for this Genlink image, and leave other flags for /etc/portage/package.use/... for finer customization done by each user.


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 11:37 am 
Offline
Developer
User avatar

Joined: Wed Nov 29, 2006 11:27 am
Posts: 95
Location: Germany
LaitrKeiows wrote:
harakiri wrote:
comment out the line "source /usr/portage_overlays/layman/make.conf" until you have layman installed and added the orion5x overlay

Yes, it worked.
Yes, this should be fixed now, in the new image I'll be uploading tonight. It looks like I could make that new image now, based on the feedback of the two of you, harakiri and LaitrKeiows, hopefully that one and a slighly updated wiki article will be more successful in booting the boxes at first attempt. Thanks alot!


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 12:11 pm 
Offline
Newbie

Joined: Thu Sep 04, 2008 7:41 am
Posts: 20
Zoolook wrote:
Yes, this should be fixed now, in the new image I'll be uploading tonight.
Ok, thanks a thousand times already.
Don 't forget to populate /dev with the necessary device files (at least sda, urandom and random).
Also make sure you pull in a subversion OTHER than 1.5.0. It doesn 't like the installed Neon version (although it 's higher than the required one). I recommend subversion 1.5.1, that worked for me.
I 'm also still puzzled why your default kernel (2.6.22) + the 2.6.26 wouldn 't boot in EM mode. They completely ignored either rootfs_booting/rootfs_ok files and the 3x poweroff procedure.

Speaking of kernels: now that I 've finally successfully pulled in the orion5x overlay and emerged the orion5x sources, how do I go about with building the kernel? I mean, do you have a good working .config and an up-to-date procedure on how to create uImage.buffalo? Over here is a procedure on how to do it on Debian, but I guess it must be possible on a Gentoo PC to do it with crossdev, yes?

Last thing: I 'm always getting this warning when emerging
Code:
WARNING: repository at /mnt/xtra/gentoo/portage_overlays/local/my_overlay+patches is missing a repo_name entry
Quid?


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 12:44 pm 
Offline
Developer
User avatar

Joined: Wed Nov 29, 2006 11:27 am
Posts: 95
Location: Germany
harakiri wrote:
Zoolook wrote:
Yes, this should be fixed now, in the new image I'll be uploading tonight.
Ok, thanks a thousand times already.
Don 't forget to populate /dev with the necessary device files (at least sda, urandom and random).
I'm a bit puzzled by this, as udev should have created them, and according to the Geentoo udev guide only /dev/null and /dev/console should be needed, but nevertheless, I have included the following in the Genlink image:
Code:
GenLSPro / # ls -al /mnt/share/Genlink/ROOTFS_mods/OVERWRITE_ROOT/dev
total 8
drwxr-xr-x  4 root root   56 Feb 20  2007 .
drwxr-xr-x 16 root root 4096 Sep  9 21:33 ..
lrwxrwxrwx  1 root root   15 Dec 28  2007 MAKEDEV -> ../sbin/MAKEDEV
crw-rw----  1 root tty  5, 1 Dec 28  2007 console
prw-------  1 root root    0 Dec 28  2007 initctl
crw-rw----  1 root root 1, 3 Dec 28  2007 null
drwxr-xr-x  2 root root    8 Dec  6  2006 pts
drwxr-xr-x  2 root root    8 Dec  6  2006 shm
crw-------  1 root root 4, 1 Dec 28  2007 tty1
Could it be that those missing devices are due to the kernel configuration of the kernel you booted?
harakiri wrote:
Also make sure you pull in a subversion OTHER than 1.5.0. It doesn 't like the installed Neon version (although it 's higher than the required one). I recommend subversion 1.5.1, that worked for me.
Ok, I will take care of this.
harakiri wrote:
I 'm also still puzzled why your default kernel (2.6.22) + the 2.6.26 wouldn 't boot in EM mode. They completely ignored either rootfs_booting/rootfs_ok files and the 3x poweroff procedure.
Actually, I think it's the stuff in the initrd which handles all this, and I can confirm that I had my LSPro in EM mode several times before I re-added the code to reset this counter, in /etc/conf.d/local. So I'm puzzled, too...
harakiri wrote:
Speaking of kernels: now that I 've finally successfully pulled in the orion5x overlay and emerged the orion5x sources, how do I go about with building the kernel? I mean, do you have a good working .config and an up-to-date procedure on how to create uImage.buffalo? Over here is a procedure on how to do it on Debian, but I guess it must be possible on a Gentoo PC to do it with crossdev, yes?
Yes, I could provide some .config files, and yes, I followed that procedure on gentoo, too, and also integrated that patching stuff in the ebuilds (noticed the dependencies pulled in?), that way you only crosscompile your kernel and end up with the uImage by issuing something like
Code:
ARCH=arm CROSS_COMPILE=armv5tejl-softfloat-linux-gnueabi- INSTALL_MOD_PATH="$ROOT" make uImage modules
harakiri wrote:
Last thing: I 'm always getting this warning when emerging
Code:
WARNING: repository at /mnt/xtra/gentoo/portage_overlays/local/my_overlay+patches is missing a repo_name entry
Quid?
Yes, that's a left-over of my own local overlay, I will fix this by providing either the necessary repo_name file, or commenting the overlay out.
Once again, thanks a lot for the feedback!


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 1:06 pm 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
Thank you for your efforts, Zoolook!

Also it would be nice to add a limited set of locales to /etc/locale.gen
Code:
LSmini usr # cat /etc/locale.gen
en_US.UTF-8 UTF-8


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 1:24 pm 
Offline
Newbie

Joined: Thu Sep 04, 2008 7:41 am
Posts: 20
Zoolook wrote:
I'm a bit puzzled by this, as udev should have created them, and according to the Geentoo udev guide only /dev/null and /dev/console should be needed, but nevertheless, I have included the following in the Genlink image:

Sorry I didn 't express it as I should: I 'm currently still running in EM-mode, so I 'm chrooted into the Genlink install. Of course, udev is not active on that /dev.
So, I would just ask this /dev to be prepopulated in case you have to go to EM mode and chroot to your install. There is no harm in having it there.
Zoolook wrote:
... and also integrated that patching stuff in the ebuilds (noticed the dependencies pulled in?), that way you only crosscompile your kernel and end up with the uImage by issuing something like

You 've lost me there again. Do you mean I have to add the overlay on my PC too to get the orion5x sources + tools?
So I
-emerge crossdev,
-then run crossdev --target arm-unknown-linux-gnu,
-emerge layman
-add orion5 overlay
-emerge orion sources
-put the .config in the kernel tree
-make menuconfig and do whatever I need
-ARCH=arm CROSS_COMPILE=armv5tejl-softfloat-linux-gnueabi- INSTALL_MOD_PATH="$ROOT" make uImage modules

Something like that?


Top
   
 Post subject: Re: Genlink broken?
PostPosted: Mon Sep 15, 2008 1:28 pm 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
harakiri wrote:
-emerge crossdev,
-then run crossdev --target arm-unknown-linux-gnu,

You can do it without an overlay. Just emerge crossdev, make a cross toolchain and follow this quide:
http://buffalo.nas-central.org/index.ph ... ernel_Port

You can get mkimage from dev-embedded/u-boot-tools


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 72 posts ]  Go to page Previous 1 2 3 4 5 Next

All times are UTC+01:00


Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited