LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This 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


Reply
  Search this Thread
Old 10-27-2017, 11:54 PM   #1
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Rep: Reputation: Disabled
uClinux freezes in Arria 10 GX board


Hi,

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.


Thnaks
 
Old 10-28-2017, 08:39 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
What kernel version are you on? Have you read https://en.wikipedia.org/wiki/%CE%9CClinux
 
Old 10-30-2017, 12:01 AM   #3
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
What kernel version are you on? Have you read https://en.wikipedia.org/wiki/%CE%9CClinux
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)
After this i am not getting any output print.
 
Old 10-31-2017, 09:56 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
What is that? Installation? Kernel booting? What?
 
Old 10-31-2017, 11:34 PM   #5
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
What is that? Installation? Kernel booting? What?
Kernel booting message after building an image.
 
Old 11-01-2017, 11:34 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by shafin.vahora View Post
Kernel booting message after building an image.
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.
 
Old 11-06-2017, 02:34 AM   #7
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
What is that? Installation? Kernel booting? What?
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?
 
Old 11-06-2017, 06:39 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 11-06-2017, 07:09 AM   #9
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
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?
 
Old 11-06-2017, 11:36 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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?
 
Old 11-07-2017, 10:43 PM   #11
shafin.vahora
LQ Newbie
 
Registered: Sep 2017
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
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.
 
Old 11-08-2017, 03:36 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
/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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux usb Gadget driver for Arria 10 SOC shafin.vahora Linux - Embedded & Single-board computer 6 10-02-2017 12:27 AM
LXer: ARM/FPGA module runs Debian on Arria 10 SoC LXer Syndicated Linux News 0 03-12-2017 09:17 PM
LXer: ARM/FPGA module runs Linux on Arria 10 SoC LXer Syndicated Linux News 0 10-25-2016 06:34 AM
How can i build ppp in a arm board which has uclinux os keer Linux - Networking 0 10-22-2003 08:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration