OpenWrt Forum Archive

Topic: openwrt on Soekris 4521

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

I'm trying to install openwrt on a Soekris 4521 (i486 CPU).

I followed the SoekrisPort documentation all went well until the boot.

After GRUB loading, please wait ...

Than I garbage (few characters at the top of the console).

I tried with the jffs2 and the ext2 images for x86.

Any help would be appreciated.

Thanks

Yeah, broken since changeset [6530].  You have to patch the build-system and everything is fine again. Tested on net4801 with the SquashFS and EXT2 image.

- delete a file with 'svn del target/linux/x86-2.6/base-files/default/etc/inittab'.
- patch the build-system with 'patch -p0 < fix-x86-2.6.patch'
- rebuild with 'make package/base-files-clean target/clean world'
- reflash

fix-x86-2.6.patch:

Index: package/base-files/files/sbin/mount_root
===================================================================
--- package/base-files/files/sbin/mount_root    (revision 7073)
+++ package/base-files/files/sbin/mount_root    (working copy)
@@ -11,7 +11,6 @@
     mount -t sysfs none /sys
     mount -t tmpfs tmpfs /dev -o size=512K
     mknod /dev/console c 5 1
-    exec >/dev/console </dev/console 2>&1
     mkdir /dev/shm
     /sbin/hotplug2 --no-persistent --coldplug --max-children 1
 fi
Index: target/linux/x86-2.6/image/grub/menu.lst
===================================================================
--- target/linux/x86-2.6/image/grub/menu.lst    (revision 7073)
+++ target/linux/x86-2.6/image/grub/menu.lst    (working copy)
@@ -1,15 +1,15 @@
 serial --unit=0 --speed=@BAUDRATE@ --word=8 --parity=no --stop=1
-terminal --timeout=10 console serial
+terminal --timeout=10 serial
 
 default 0
 timeout 5
 
 title   OpenWrt
 root    (hd0,0)
-kernel  /boot/vmlinuz @CMDLINE@ noinitrd console=tty0 console=ttyS0,@BAUDRATE@n8 reboot=bios
+kernel  /boot/vmlinuz @CMDLINE@ noinitrd console=ttyS0,@BAUDRATE@n8 reboot=bios
 boot
 
 title    OpenWrt (failsafe)
 root    (hd0,0)
-kernel  /boot/vmlinuz failsafe=true @CMDLINE@ noinitrd console=tty0 console=ttyS0,@BAUDRATE@n8 reboot=bios
+kernel  /boot/vmlinuz failsafe=true @CMDLINE@ noinitrd console=ttyS0,@BAUDRATE@n8 reboot=bios
 boot

(Last edited by forum2006 on 2 May 2007, 09:02)

Thanks for the info,

I don't have a setup to make a new image yet.

Is there a place were I can get a working x86 image for soekris (snapshot or cthe 2.4 version) ?

Well, you can try the X86 [2.6] image from http://ipkg.k1k2.de/. But I don't think the console is fixed there. Also the snapshots from download.openwrt.org will not have this patch included.

The other options are to build your own image (see my signature) or wait until tomorrow then I'll upload one to my webspace with the patch.

(Last edited by forum2006 on 2 May 2007, 13:32)

Cool,

I'll wait for your image. In the mean time i'll give a try to the  image on ipkg.k1k2.de and let you know the result.

Thank for your time.

See the link in my signature for X86 [2.6] image.

Hi forum2006,

Thanks for the link. Unfortunately I still have the issue.

As per the docs I :

- copied the openwrt-x86-2.6-vmlinuz into /mnt/cf/boot

- dd openwrt-x86-2.6-squashfs.image to the second partition on the flash card

- created a menu.lst

- umount

- boot with flash and same problem.

Am I doing something wrong ? BTW I'm using and USB card reader to create the bootable flashcard on fedora core6 (hope this is not an issue)

Thanks in advance for your help.

You need only one file (image): openwrt-x86-2.6-squashfs.image

Use dd to transfer this to the CF card. I used dd.exe on Windows with a USB card reader. Everything is fine for me.

C:\>dd-0.3\dd-removable.exe --progress if=openwrt-x86-2.6-squashfs.image of=\\?\Device\HarddiskX\Partition0

You don't have to copy anything manually to the CF card. Just use dd.

EDIT: I don't know if Linux and USB is working well together. IIRC correctly that was one reason for me to go back to Windows. Parameters for serial console are 115200-8-n-1

(Last edited by forum2006 on 4 May 2007, 17:31)

Your the best,

Worked like a charm.

Many many thanks forum2006 ;-)

NOTE : I changed the speed in menu.lst to 19200.

Thanks

The discussion might have continued from here.