|
bytespider
|
 |
« 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: cannot stat '../usr_src/bin/amit_ftpd' : No such file or directory. ...and... mke2fs: Permission denied while trying to determine filesystem size so any help would be apperciated. Cheers
|
|
|
|
|
Logged
|
|
|
|
|
|
|
sanecyclist
|
 |
« 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: 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #6 on: April 21, 2007, 17:01:25 PM » |
|
Which is his?
|
|
|
|
|
Logged
|
|
|
|
|
|
|
tcc1000
|
 |
« 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 
|
|
|
|
|
Logged
|
|
|
|
|
bytespider
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
|
|
|
|