cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dpekin
Explorer
Explorer
4,642 Views
Registered: ‎07-09-2012

Dropbear build for zc702 error

Jump to solution

Hello,

 

I am in the process of rebuilding the ramdisk for the zc702 dev board.  

 

Following the wiki, I believe busybox is coross compiled correctly.  Then, when I run

 

make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" MULTI=1 strip

 

The make fails when trying to run "strip dropbearmulti"  The error is 

"strip: Unable to recognise format of the input file 'dropbearmulti'"

 

I am cross compiling on Ubuntu 12.04.  This works fine for building the kernel.

 

Any thoughts or work arounds?

 

 

Thanks.

 

- Dave

 

 

 

0 Kudos
1 Solution

Accepted Solutions
linnj
Xilinx Employee
Xilinx Employee
5,903 Views
Registered: ‎09-10-2008
I think the kernel expects the dev directory to exist on the root file system and if not you may get that error.

View solution in original post

0 Kudos
5 Replies
linnj
Xilinx Employee
Xilinx Employee
4,638 Views
Registered: ‎09-10-2008
Hi Dave,

I don't have any great answers, could be something is different with 12.04. That's the joy of cross compiling, but in this case it sounds like it might have built, but just be stripped so the binary is bigger than expected. Maybe the command line has to be different.

We have moved to just using open ssh rather than dropbear. Since we needed secure FTP we had to have that from open ssh anyway. We have not released that ramdisk image yet as it's going to be for 14.3.

Thanks.
0 Kudos
dpekin
Explorer
Explorer
4,634 Views
Registered: ‎07-09-2012

Thanks.  I removed the "strip" from the command line and the make script for dropbear finishes.

 

I continued to create the ramdisk.  After the kernel loads and it tries to mount the ramdisk I receive a "devtmpfs: error mounting -2"  message. Then the system crashes.

 

Anyone have any ideas?

 

I will try to mount the FS on QEMU to see if it works there.

 

Thanks.

 

- Dave

0 Kudos
linnj
Xilinx Employee
Xilinx Employee
5,904 Views
Registered: ‎09-10-2008
I think the kernel expects the dev directory to exist on the root file system and if not you may get that error.

View solution in original post

0 Kudos
dpekin
Explorer
Explorer
4,617 Views
Registered: ‎07-09-2012

Thanks.  My mistake.  I failed to have the correct directory structure.

 

The default ramdisk is 8M.   Do you know offhand the max size for the zc702 dev board?

 

- Dave

0 Kudos
linnj
Xilinx Employee
Xilinx Employee
4,610 Views
Registered: ‎09-10-2008
16 MB I believe the way the kernel is configured.
0 Kudos