LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 01-27-2014, 07:41 AM   #1
s.a.pishvaie
LQ Newbie
 
Registered: Nov 2013
Posts: 6

Rep: Reputation: Disabled
Unhappy problem with u-boot (bootm) for raspberry Pi


Hi all.
I have zImage and uImage for RPI )raspberry) and also make u-boot.bin (get from https://github.com/gonzoua/u-boot-pi/archive/rpi.tar.gz), change config.txt file, which is in the first partition (i.e. boot) as:
#arm_freq=700
#core_freq=250
kernel=u-boot.bin
#disable_overscan=1
#gpu_mem_256=100
#gpu_mem_512=100
#sdram_freq=400
#over_voltage=0

u-boot work perfectly. USB to Serial connector is used to send command via minicon (115200 ...). in sum everything is ok. I use "fatload mmc 0:1 ${loadaddr} uImage" command, which "uImage" is my uboot image, made via buildroot. aftermantioned command perform thoroughly and it seems everything is ok. u-boot prompt that uImage is loaded. when i issue the bootm command some messages about start address and entry point is displayes, "Starting Kernel ..." message is printed and then suddenly u-boot is seems to be restarted.
it sjould be noted that "uImage" is selected as "kernel binary format" and the "loadaddr" is set to 0x00200000, in buildroot.
Please help me to solve this problem. I think that this problem is originated from some neglected config or miss-calculation of start address/entry point address/loadaddr. i will be so gratefull if someone guid me about these addresses and the difference among them.
regards.
 
Old 01-27-2014, 08:23 AM   #2
buttugly
Member
 
Registered: Feb 2006
Location: Texas of course
Distribution: Slackware-current
Posts: 32

Rep: Reputation: 10
http://stackoverflow.com/questions/1...e-from-sd-card
 
Old 01-29-2014, 02:06 AM   #3
s.a.pishvaie
LQ Newbie
 
Registered: Nov 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by buttugly View Post
thank you for yor reply. I read this link and change the start address as "0x0c100000" as apecified for arm in this link. i want to know aboat start address, entry point address and also want to know the difference between them.
it is my board info -which is achieved via bdinfo- :
U-Boot> bdinfo
arch_number = 0x00000C42
boot_params = 0x00000100
DRAM bank = 0x00000000
-> start = 0x00000000
-> size = 0x19C00000
baudrate = 115200 bps
TLB addr = 0x19BF0000
relocaddr = 0x19B94000
reloc off = 0x19B8C000
irq_sp = 0x1978FF40
sp start = 0x1978FF30
FB base = 0x19C06000

and it is the output which i copy/past from "minicom":
reading uImage
26852840 bytes read in 4598 ms (5.6 MiB/s)
U-Boot> bootm
## Booting kernel from Legacy Image at 00200000 ...
Image Name: Linux-3.10.10
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 26852776 Bytes = 25.6 MiB
Load Address: 0c100000
Entry Point: 0c100000
Verifying Checksum ... OK
Loading Kernel Image ... OK

Starting kernel ...

<<<<<<<<<<< rpi is restarted >>>>>>>>>>>>>>>>>>>>

U-Boot 2013.07 (Jan 27 2014 - 19:19:18)

DRAM: 412 MiB
WARNING: Caches not enabled
MMC: bcm2835_sdhci: 0
Using default environment

In: serial
Out: lcd
Err: lcd
Hit any key to stop autoboot: 0
mmc0 is current device
reading boot.scr.uimg
** Unable to read file boot.scr.uimg **
U-Boot>
please help me.

Last edited by s.a.pishvaie; 01-29-2014 at 02:08 AM.
 
Old 03-09-2014, 01:07 AM   #4
s.a.pishvaie
LQ Newbie
 
Registered: Nov 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Smile my problem is solved

my mistake was that the kernel had been compiled incorrectly. thus it can not be work properly when is called with u-boot command line. it was over 30MB.

thanks for "buttugly" for its helpful link.

Best regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] raspberry PI boot problem: faile to start login service golden_boy615 Linux - Embedded & Single-board computer 2 01-29-2014 01:06 AM
LXer: Raspberry Jams: why Raspberry Pi is going back to school LXer Syndicated Linux News 0 10-25-2013 12:20 PM
slackware raspberry pi only boot once jmpz Slackware 1 09-17-2013 08:55 PM
LXer: Raspberry Pi becomes Raspberry PC via Mini-ITX carrier LXer Syndicated Linux News 0 07-17-2013 01:20 PM
LXer: Enter the element14 Pi Day ‚??Raspberry RoadTest‚?Ě Challenge for a chance to win a Raspberry Pi c LXer Syndicated Linux News 0 03-08-2012 06:20 AM


All times are GMT -5. The time now is 12:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration