www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Module compilation HELL... FS is RO. Can't compile.

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
arfon



Joined: 20 Dec 2009
Posts: 29

PostPosted: Sat Oct 17, 2015 10:40 pm    Post subject: Module compilation HELL... FS is RO. Can't compile. Reply with quote

My setup: ZS3.4.0 installed on harddrive.

I picked up a RTL8153 based USB gigabit adapter. The r8152 modules in ZS are apparently broken for this chipset and the fix (according to some forums) is to recompile the latest module.

I grabbed the latest source from Realtek (http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=56&Level=5&Conn=4&DownTypeID=3&GetDown=false) and tried to compile it but, it fails:
Code:
make[1]: *** /lib/modules/3.18.21-ZS/build: No such file or directory. Stop.


It wants to write to /lib/modules/3.18.21-ZS/build which is a symbolic link to /usr/src/linux-3.18.21 (which does not exist).

So I
Code:
mkdir /usr/src/linux-3.18.21
...and it tells me "cannot create directory... Read-only file system".

So I check the mounts and mount shows / is mounted RW:
Quote:
tmpfs on / type tmpfs (rw)


So I
Code:
mount -o remount,rw /
...and it doesn't fix the problem...


Q1: How do you mount the filesystem RW so you can make changes?

Q2: How do you save those changes across reboots?

Q3: How do you compile and add/remove kernel modules?
Back to top
View user's profile Send private message
reaperz



Joined: 13 Apr 2012
Posts: 84

PostPosted: Tue Oct 20, 2015 2:10 pm    Post subject: Reply with quote

You can only keep changes on /Database/ partition.

I have earlier modified Zeroshell quite a lot, using pre boot and post boot scripts. Created my own partition, copied data from CDROM partition to that and mounted that instead of CDROM.

But for a while now I have used standard edition so don't remember exactly how was it done!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group