How to Generate a New ROMFS Kernel

How to Generate a New ROMFS Kernel

<p> How to Generate a New ROMFS Kernel S. Durkin Overview</p><p>While the uClinux kernel we have been using has remained remarkably stable people have wanted to modify the ROM file system to change ethernet addresses…This fortunately can be done without recompiling the kernel (kernel.bin). The software presently runs on RedHat 5.2 and on RedHat 7.1.</p><p>Loading Programs</p><p>The programs can be gotten from the web page:</p><p> http://www.physics.ohio-state.edu/~durkin/software/d360/genkernel.tar.gz</p><p>To install type:</p><p>1. tar –xvf genkernel.tar (as root ) 2. cd genkernel;make</p><p>Modifying ROMFS</p><p>The romfs is located in genkernel/mnt. You edit files you want changed. These may include genkernel/mnt/etc/rc, inetd.conf, services, and genkernel/mnt/bin/login. Since the ROM file system is a block file system you can edit even the binary files without causing problems.</p><p>Note: There have been problems seen with tar not handling the directory mnt/dev correctly. You should check there are files in mnt/dev. Also check there is not directory mnt/dev/dev. If there is delete it.</p><p>Generating Kernel Image</p><p>Once you are happy with the ROM file system type: make_kernel. This will generate the file kernel.bin. You can copy this to the d360-flash-loader/flash directory, and use it to flash the memory.</p><p>Debugging Problems</p><p>If your ROM file system will not flash correctly first check the size of the file. If this is about right try mounting romfs.img on your linux machine:</p><p>1. mkdir /mnt/romfs (as root) 2. mount –r –o loop –t romfs romfs.img /mnt/romfs Now check each of the files in /mnt/romfs. If they all look ok it is time to EMAIL or phone me.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us