Search this site


Metadata

Articles

Projects

Presentations

Soekris net4501 upgrade to FreeBSD 7.0

I've definitely spent 10+ hours in the past 2 days trying to get this system upgraded from 6.0 to 7.0...

Why? First, I was using the wrong power supply, so it would randomly reboot during startup (4 hours, after before I figured that one out, after compiling zillions of kernels, even trying GENERIC from 6.2, 6.3, and 7.0). Then, I couldn't get a stable system image that would boot successfully. It would halt trying to run /sbin/init. Not sure why.

I was initially making my own image with mdconfig, and rsyncing the entire system into a file-backed fs. Then I dd'd this image to my compactflash and put it in the net4501. I gave up on that after several hours, and did this instead:

  1. Bring up a new vmware instance with 2 disks. 1 800mb disk and 1 5gb disk.
  2. Install 7.0-RC1, only install kernel and base.
  3. Mount the 5gb disk (newfs /dev/sd1, mount /dev/sd1 /usr/src) and unpack the kernel sources there. Build kernel (For the soekris box).
  4. Make any necessary config changes (serial console, etc)
  5. Shutdown machine
  6. Use qemu-img to convert the vmware disk into a raw disk image
  7. dd the new image to compact flash.
  8. Rejoice. I have a working net4501 now.
In testing in qemu, I get random timeouts talking to ad0. On the soekris board, I get random timeouts to ad0. wtf :(

Boot into safe-mode, and everything seems find. (Safe mode turns off DMA, iirc)


1 responses to 'Soekris net4501 upgrade to FreeBSD 7.0'

Showing last 1 comments... (Click here to view all comments)

Uriel wrote at Sun Aug 3 08:37:56 2008...
I just ran into quite a few problems after my 2'5 HD definitely gave up in my Soekris 4801, and I had to reinstall it on a CF. However, I didn't succeed to install it through PXE, so I ended up installing the FreeBSD from a VMware FreeBSD. The CF was in an USB Card Read, and this USB device was connected to the virtual FreeBSD server. Installation was OK, I just had to change the device name of the disk in the /etc/fstab to make in correct. And also hadnle that DMA trouble with a 'hw.ata.ata_dma="0"' in loader.conf.


However, I must recompile a kernel now (I'll probably build it on the virtual box). Could youi please provide the kernel configuration file you used ?


Leave a reply

You need javascript enabled to use this form. Anti-spam efforts ongoing. Also, if the comment doesn't show up, it's because the form expired. Go back and copy your comment, reload the form, and resubmit. Apologies if this is a hassle, I'm just playing with antispam methods right now. If this insists on not working, please email me about it.

Name (required)
E-mail (optional, if you want me to be able to email you back)
URL (also optional)
Comment: