Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is my first post ever in this forum, therefore sorry in advance for the mistake I can make.
I have a board that is equipped with a NXP3143 ARM9 processor, 32Mo of RAM (Winbond) and one Lattice FPGA chip (no idea what is it for).
It has a SD card where the Linux distribution is, a SATA to connect to a DVD drive, a USB port. This USB port is connected to a basic screen (4 inches, with 7 lines) with 3 buttons. The screen display some information about the application that is running and nothing else. The screen has another USB port where you can connect a hard drive.
I would like just to add another module to support a ethernet driver so I can plug in the USB port (instead of a drive) a USB to Ethernet adapter. There is already a driver but I would like to put another one.
The issue is I don't know what is the linux distribution used nor how to access the system through a command line.
The SD card is partitionned in 3 parts:
-the boot
-ext3 with only a few files (rwfs, rootfs and uImage, all of them without extension)
-fat32 empty
I have managed to install QEMU and I have been able to do 2 things:
-Run the ARM emulator (qemu-system-arm.exe -machine virt -kernel uImage -hda rootfs) - which basically does not show anything as there is no graphic adapter in the OS (embedded linux)
-Run the slitaz linux distribution mounting the SD card to see the content of the SD card in ext3 (which I cannot acces with Windows)
I am stuck here.
As far as I understand the file rootfs contains the file system while the uImage contains the kernel. Idon't know what is the rwfs at all.
Is there a way either to emulate the ARM9 and get a console to type a few command or extract the content of the rootfs or uImage to add the module inside somehow?
Thank you for your answer. I would love to be able to type in commands, however this is my first blocking point.
The board has only a custom screen connected through USB where it is not meant to type in command lines. When I load the the images in QEMU I only have the monitor and the serial ports. There is no prompt coming, and I guess it is because it is not meant to display anything.
I have read it is possible to access the command line through the serial port, but I have had no luck with that so far. I heard about using ssh on the ethernet side but I do not what steps to do exactly. The monitor of QEMU gives me some information but as I am a newbie that is really hard.
I have search the -append command where apparently you can modify a little bit the way the kernel is set in order to make the serial port work. I tried also to find how to see the inside of the 2 files, maybe using another linux OS and mount something? I tried mount -o loop but failed everytime.
Any ways to understand what is this linux embedded version I have got would be really appreciated.
My main issue is actually to be able to access the command lines. The board does have a screen that is only there to display application related information and not system therefore no input commands is possible.
That is why I have used QEMU to see if would get an access to the command line somehow (but with no luck, nothing is getting displayed)
What I tried is using the -append command to make the command line available using the serial port which is not working either.
I have heard about using ssh on ethernet, but this is too technical for me at the moment.
Well this is where I am. Any luck to know more of what this linux version is and how to get to the command line would be good.
Do you know what is uImage?
Thank you,
Armandooooo
Last edited by Armandooooo; 04-07-2019 at 05:12 AM.
Shoot. Outa my league. I never used Qemu. Don't know about uImage
You are talking serial ports and being locked out. No usb port to tie in a laptop and use a live session off the laptop to get info:
like using the file manager to look in /boot folder in that embedded system.
which will show what kernel that thing is running. Probably ancient also. Which makes me wonder if adding a modern ethernet module will be even possible.
Size is wrong by the way, the file is 40MB therefore might be compressed somehow.
Seems to be data, but the mkimage recognize the rootfs as boot image. I tried also binwalk who seems to be a great tool when analysing data to see what seems to be inside but no luck here:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.