OpenWrt Forum Archive

Topic: Problems with image for adm5120 (Edimax BR-6104KP)

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

Hi @ all,

i have created an image for the 6104KP device from latest svn.

Then i flashed the xmodem image (via tftp, non original bootloader) and then
start from sram.

The kernel is found and runnning, but then the boot stop's after mounting the rootfs.
I have created an squashfs type image.

Here are the lateset log lines :
Freeing unused kernel memory: 124k freed
Warning: unable to open an initial console.
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Can someone give me a tip, what is wrong here ?
The rootfs in the image build_dir/mipsel/root-adm5120 have the file /etc/preinit inside,
so i can not see the problem.

I hope someone of you, can help me here ....

Best regards, and sorry for my bad english,
MicroProz

Hi people,

has nobody an idea, or a tip, why the the kernel can not find the the /etc/preinit file ?

Before OpenWRT i have worked with midge, and developed on it (with vlad a while ago).
But midge is based on kernel 2.4.32 an have problems with usb.
So, if it needed to work/fix the usb driver, i want to do this on the newer 2.6 Kernel.
Now, i need to get a functional image, for my BR-6104KP device.
In midge, i have created my own partition table, and so i have not so problems to mount
the rootfs.

The 'trxsplit' system is new for me. So it's hard to find, where is the proble, or the bug.

I think there is a problem by mounting the rootfs, but at this point there is not an error.

Here are some more log lines :

trxsplit: searching TRX header in 'admboot'
trxsplit: searching TRX header in 'config'
trxsplit: searching TRX header in 'firmware'
trxsplit: TRX header found at 0x2000
trxsplit: creating TRX partitions in 'firmware' (31,2)
Creating 2 MTD partitions on "firmware":
0x0000201c-0x000d3800 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000d3800-0x001f0000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=180000, len=70000
0x00180000-0x001f0000 : "rootfs_data"
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Warning: unable to open an initial console.
Failed to execute /etc/preinit.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


Please give me a tip in the right way ....

I'm thankful for every posting

Best regards,
MicroProz

MicroProz wrote:

has nobody an idea, or a tip, why the the kernel can not find the the /etc/preinit file ?

I think you have a configuration error, because generation of the xmodem image has always worked fine for me, except in a few cases where the developers broke it (and it was quickly fixed).

Maybe this will help:
http://linux-adm5120.sourceforge.net/op … mpile.html
(maybe it's out of date, but you get the idea).

Also, I think there are sometimes dependency errors, so if you have changed the config and rebuilt, and it doesn't work, try to delete the whole trunk directory and rebuild (don't delete the 'dl' directory).  This sometimes fixed strange problems for me.

The discussion might have continued from here.