Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

busybox error

Altera_Forum
Honored Contributor II
2,095 Views

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?
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
479 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
479 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
479 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
479 Views

What&#39;s your error message?

0 Kudos
Altera_Forum
Honored Contributor II
479 Views

Hi 

 

It was my dumb mistake, sorry. 

 

Nir
0 Kudos
Reply