Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

busybox error

when i built busybox according <linux referece guide>, everythings gone well

except when linux startup, the error comes:

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

Creating 4 MTD partitions on "Altera NDK flash (AMD)":

0x00200000-0x00600000 : "romfs/jffs2"

0x00000000-0x00200000 : "loader/kernel"

0x00600000-0x00700000 : "User configuration"

0x00700000-0x00800000 : "safe configuration"

i2c /dev entries driver

i2c-oc: i2c Opencores adapter driver

Opencores i2c algorithm module

NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

NET: Registered protocol family 1

NET: Registered protocol family 17

VFS: Mounted root (romfs filesystem) readonly.

Freeing unused kernel memory: 60k freed (0x116e000 - 0x117c000)

Kernel panic - not syncing: No init found. Try passing init= option to kernel.[/b]

--- Quote End ---

I guess it is because of no init.lnk in /bin but in /sbin

So I copy /sbin/init.lnk to /bin, but failed again,the same error occured.

Can you help me?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Euhm

    I&#39;m pretty much clueless as it comes to the latest incarnations of Windows, but a x.lnk file seems to be a link to a certain file.

    From what I remember (>5 yrs ago), a *.lnk file is a txt file with in it the txt where the file is linking to.

    I doubt that would be recognised by a Unix based system.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I found the reason.

    When I "make install", "busybox" copied to <project>/target, but it was rw only not excutable. So I "mv busybox busybox.exe" (chmod 777 in cygwin was useless during my test).

    Then "build fs" , upload, it worked.

    PS: my classmates&#39; work is "xrw" of "busybox" after "make install", so I don&#39;t know why things goes wrong in my way.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi

    I have sthe same problem with the basic kernel and filesystem project. I just go through the quick start guide but get the same output you&#39;ve pasted. I don&#39;t find anything under the filesystem/target that I should make executable. Any idea on what can go wrong when I just want to get a login to uClinux ?

    Nir