Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
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.
I have developed usb device driver in uClinux distribution for our core commander development board and tested successfully.
Now, same distribution is used for Arria 10 GX but not booting uClinux. After downloading sof and linux image when i start nios2-terminal, it shows nothing.
Please help if anybody has faced this issue and provide solutions for this.
I am using uClinux distribution with linux kernel 3.4.0. I am booting this image on Arria 10 GX board.
Here is the oputput that i am getting.
Quote:
$ nios2-download -g linux.initramfs.gz
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 4785KB in 102.2s (46.8KB/s)
Verified OK
Starting processor at address 0xC0000000
Shafin.Vahora.388@CI5W8P111407 /cygdrive/e/Shafin/USB/eusb31sf_mmu
$ nios2-terminal.exe
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
Cryptic, to put it mildly. It seems it starts talking when your kernel is loaded, and stops on the first error. It's pretty primitive. I would do a few things
1. Look for a --quiet in the boot line and do the opposite, whatever that is --debug?
2. Unzip that initrd - just in case
3. Double check that you're connecting into the correct spot. I don't like it using a JTAG uart.
/Begin boring Electronic technobabble - 2nd time today
JTAG is a manufacturer board test system. The idea is that each IC has JTAG I/O pins, which are daisychained to other JTAG pins and brought back out of the board. Manufacturer circuitry (usually nothing to do with the rest of the IC) controls JTAG pins - input, output, and clock.
As the JTAG clock is clocked, the device reports the logic level of each pin to it's output, which is the input of the next chip, and the last chip[ reports to the output. A big digital string is produced by a known good board, representing each pin in succession, and stored. Boards to be tested are compared to that. It's stupid, but effective for catching manufacturing errors
/End boring Electronic technobabble - 2nd time today
If they're short of pins somewhere they may resort to double jobbing for the JTAG pins, but it's odd.
It is kernel booting after loading an image. What should be link address offset in kernel configuration? Is it default or need to change manually? if yes then what value should i have to writ?
I would not worry about the kernel link address. Are you sure the usb socket you're using is the correct one? I really don't like that whatever port you boot from also does jtag. It may not be wrong, but it SMELLS wrong from here. We have moved on from post #4. Look at post #6. Also, if you have downloaded binaries, make sure they're compatible with your cpu. And at least once, I would go off and have coffee/beers/lunch when it is hung and sitting there in case it's just amazingly slow.
I would not worry about the kernel link address. Are you sure the usb socket you're using is the correct one? I really don't like that whatever port you boot from also does jtag. It may not be wrong, but it SMELLS wrong from here. We have moved on from post #4. Look at post #6. Also, if you have downloaded binaries, make sure they're compatible with your cpu. And at least once, I would go off and have coffee/beers/lunch when it is hung and sitting there in case it's just amazingly slow.
Yes, i am sure it is usb socket. Is there any kernel configuration related to booting? AS i know i have set all configuration setting because i have already worked and developed device drivers for our custom board. Is there any changes required from memory side that it can't find RAM or not placing an image on RAM or anything else?
Ok, I'll try to forget that jtag stuff. The salient part, to my mind, is this: You need to explain this to me
Code:
Shafin.Vahora.388@CI5W8P111407 /cygdrive/e/Shafin/USB/eusb31sf_mmu
$ nios2-terminal.exe
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
It's picked up it's kernel I presume, it's picked up it's initrd, it has usb access, now it actually embarks on doing stuff. We are trying to boot LINUX, aren't we? LQ is a LINUX website for LINUX problems. Is nios2-terminal a M$WINDOWS process It seems so
If it looks like windows, smells like windows, crashes like windows maybe, just maybe it IS windows.
And that bit I have highlighted in red, Shafin.Vahora.388@CI5W8P111407 /cygdrive/e/Shafin/USB/eusb31sf_mmu, Is that anything to do with cygwin?
Shafin.Vahora.388@CI5W8P111407 /cygdrive/e/Shafin/USB/eusb31sf_mmu
$ nios2-terminal.exe
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
I know that LQ is gor solving linux questions. As if anyone help, if working with embedded linux.
Above code nios2-terminal.exe boots loaded linux image. Here it is linux.initrmfs.gz. But after loading i can't get any boot message. If there is any kernel configuration which can help me.
/With great self-control resists the urge to curse/vent at OP
I reckon you can help. Get your image set up in the normal way, under grub or lilo, on a linux formatted disk and keep windows a mile away from it. Take your current problem with an exe not doing it's job to a windows forum if you want to pursue that cul-de-sac.
/unsubscribes from thread
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.