macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 13:36:40 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Compiling from source  (Read 3997 times)
0 Members and 1 Guest are viewing this topic.
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« on: April 20, 2007, 11:24:52 AM »

Hi everyone.

I've been trying to compile the conceptronics firmware from source, so that I can lend a hand your developments.

However i've come accross a few errors, thanks to sanecyclist for the help provided so far.

I am compiling on a fedora 4 virtual machine. Have the opt folder in / (root) and have installed gcc, openssl, rcs, texinfo and followed the instuctions on building the firmware.

the errors i get now are:
Code:
cannot stat '../usr_src/bin/amit_ftpd' : No such file or directory.
...and...
Code:
mke2fs: Permission denied while trying to determine filesystem size

so any help would be apperciated.

Cheers
Logged
pagano
Jr. Member
**
Offline Offline

Posts: 61


View Profile
« Reply #1 on: April 20, 2007, 14:45:41 PM »

mke2fs: Permission denied while trying to determine filesystem size
edit /etc/selinux/config and change your policy from "enforcing" to "permissive",
then relabel the disk: touch /.autorelabel and reboot.

cannot stat '../usr_src/bin/amit_ftpd' : No such file or directory.
I don't remenber that error but tcc1000 had it.
http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,494.msg2849/#msg2849


There are a chrooted linux with all installed (20Mb) to build firmware and applications (examples included) in http://www.macsat.com/macsat/component/option,com_smf/Itemid,50/topic,494.msg2985/#msg2985
It works in every linux distribution with chroot command.
Logged
sanecyclist
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #2 on: April 21, 2007, 08:36:14 AM »

Ah, so you need to make sure you've followed this bit from the wiki, bytespider:

Quote
edit /etc/selinux/config and change your policy from "enforcing" to "permissive", then relabel the disk: touch /.autorelabel and reboot (the virtual machine, if you are using VMWare, not the host operating system).

I had installed Fedora from scratch rather than use a preinstalled image, and just happened not to active SELinux.
Logged
tcc1000
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #3 on: April 21, 2007, 15:39:20 PM »

I think I just removed amit_ftpd from the list of things to install/copy or whatever it was. I can't have a look at the moment as my home PC has had its memory sent back to be replaced. It doesn't matter much if you are booting into another filesystem exactly what is installed, although amit_httpd is a good idea so you can upgrade again!
Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #4 on: April 21, 2007, 16:48:03 PM »

Hi everyone - I'd done the SElinux bit before - but i dont think my VM player saved the settings as I also had to do PATH stuff again.

Good news though... I've done it - and it didn't complain about amit_tftpd!

one problem - with it being a virtual machine I can't seem to copy the upgrade.img to anywhere useful - or can i just copy it up to the device from the VM using the recovery message.
Logged
sanecyclist
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #5 on: April 21, 2007, 16:58:05 PM »

I installed smbclient and used that to copy stuff to a Windows share or directly to the NAS.

Btw, think long and hard before you try to flash your own firmware, because it might brick the device with no known method of recovery. Better to stick with Pagano's.
Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #6 on: April 21, 2007, 17:01:25 PM »

Which is his?
Logged
sanecyclist
Newbie
*
Offline Offline

Posts: 45


View Profile
« Reply #7 on: April 21, 2007, 17:06:15 PM »

Version 4 is on the download page.
Logged
tcc1000
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #8 on: April 22, 2007, 15:10:42 PM »

one problem - with it being a virtual machine I can't seem to copy the upgrade.img to anywhere useful - or can i just copy it up to the device from the VM using the recovery message.

I've actually got a copy of VM workstation, so I can share part of the host filesystem Smiley
Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #9 on: April 22, 2007, 15:16:40 PM »

Thats the one you have to pay for isn't it?
Blugh! I only got VMPlayer

Guess i'll have to flash directly from the VMPlayer.
Logged
tcc1000
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #10 on: April 22, 2007, 15:24:40 PM »

Well I got a promotional copy so I didn't actually pay for it. smbclient is fairly easy to use - you just need to share part of your windows drive. smbclient is an ftp like program to copy things around. Alternatively install an fptd in your virtual machine and get if off that way. Or use (another) FAT formatted USB stick. Or email it. Or ...
Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #11 on: April 22, 2007, 15:28:08 PM »

Or use (another) FAT formatted USB stick.
I tried that  - after mounting the USB stick it showed as empty, when it wasn't. I'll try SMBclient.

Also how are you guys adding new daemons to the firmware?
Logged
tcc1000
Newbie
*
Offline Offline

Posts: 20


View Profile
« Reply #12 on: April 22, 2007, 15:38:09 PM »

Or use (another) FAT formatted USB stick.
I tried that  - after mounting the USB stick it showed as empty, when it wasn't. I'll try SMBclient.

Did you cleanly unmount the USB stick under linux? You usually have delayed writes. For a belt and braces approach, you could sync, umount and eject the stick, then unselect it out of VMplayer so windows finds it - hopefully with the files on it!
Logged
bytespider
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #13 on: April 23, 2007, 18:36:55 PM »

Adding packages to the firmware before make linuxall, any idea? want to add ssh functionality, i've tried adding the source to the usr_src directory, and added it to the SOURCEDIRS variable in the usr_src directory. but thats where i'm stuck.

Peagno? Sanecyclist? any hits or tips?
Logged
pagano
Jr. Member
**
Offline Offline

Posts: 61


View Profile
« Reply #14 on: April 23, 2007, 20:19:28 PM »

This is my "makefirmware script" to add changes in binary firmware file.

        cd rom_disk
        echo "make ramdisk and build ext2 filesystem"
        rm -rf tmp
        rm -rf ext2img
        rm -rf fs.img
        mkdir tmp
        dd if=/dev/zero of=ext2img bs=1k count=8192
        /sbin/mke2fs -F -v -m0 ext2img
        mount -o loop ext2img tmp
#-------add your changes here -------
# like        cp my_precompiled_bin ./root/sbin/
# ------------------------------------
        cp -av root/* tmp
        umount tmp
        gzip -9 < ext2img > fs.img
        rm ext2img
        rm -rf tmp
        cd ..
        ./makebin
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.301 seconds with 24 queries.