Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

building and booting u-boot on SD-card from source

19

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
19

building and booting u-boot on SD-card from source

Posted at 12/14/2017 13:57:41      View:5680 | Replies:4        Print      Only Author   [Copy Link] 1#
I am trying to build and boot u-boot based firmware on the RK3399 FireFly using the SD-card interface.
I followed the instructions at http://rockchip.wikidot.com/linux-user-guide.

So I did:

repo init -u https://github.com/rockchip-linux/manifests -b buildroot
repo sync
cd rockchip
build/mk-kernel.sh rk3399-firefly
build/mk-uboot.sh rk3399-firefly
build/mk-image.sh -c rk3399 -t boot
build/mk-image.sh -c rk3399 -t system -r rk-debian-build/linaro-rootfs.img
build/flash_tool.sh -p system -i out/system.img -d /dev/sdi

That builds successfully, but when I try to boot that on the RK3399 Firefly board I get this:

DDR Version 1.07 20161103
In
Channel 0: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
OUT
Boot1: 2016-07-29, version: 1.05
CPUId = 0x0
ChipType = 10 1836
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=29820MB
FwPartOffset=2000 , 100000
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=2000 , 0
StorageInit ok = 255897
LoadTrustBL
No find bl30.bin
No find bl32.bin
theLoader 200000 337383
LoaderFlag2: 0x0
Unhandled Exception in EL3.
x30 =        0x0000000000045004
x0 =        0x0f1e2d3c4b5a6978
x1 =        0x00000000ff3b1fd0
x2 =        0x0000000000000018
x3 =        0x0000000000000018
x4 =        0x0000000000000018
x5 =        0x0000000000000000
x6 =        0x0000000000000000
x7 =        0x0000000000000000
x8 =        0x0000000003011908
x9 =        0x0000000000010080
x10 =        0x0000000000020f88
x11 =        0x0000000000000400
x12 =        0x000000000000000a
x13 =        0x000000000000000f
x14 =        0x0000000000000002
x15 =        0x0000000000000004
x16 =        0x0000000008000000
x17 =        0x0000000000000000
x18 =        0x0000000000800000
x19 =        0x0f1e2d3c4b5a6978
x20 =        0x000000000004b0c0
x21 =        0x0f1e2d3c4b5a6978
x22 =        0x00000000000419e9
x23 =        0x0000000000041000
x24 =        0x000000000004b0d0
x25 =        0x0000000000000001
x26 =        0x00000000ff8c2000
x27 =        0x0000000000000110
x28 =        0x0000000000000110
x29 =        0x00000000000468c0
scr_el3 =        0x0000000000000238
sctlr_el3 =        0x0000000000c5383a
cptr_el3 =        0x0000000000000000
tcr_el3 =        0x0000000000000000
daif =        0x00000000000003c0
mair_el3 =        0x44e048e000098aa4
spsr_el3 =        0x00000000600002cc
elr_el3 =        0x0000000000011c64
ttbr0_el3 =        0x000400b2304fe140
spsr_el1 =        0x0000000062060d1f
elr_el1 =        0x042c0cb927d04836
spsr_abt =        0x0000000022180000
spsr_und =        0x00000000501e2904
spsr_irq =        0x00000000000aac51
spsr_fiq =        0x0000000016028820
sctlr_el1 =        0x0000000000c52838
actlr_el1 =        0x0000000000000000
cpacr_el1 =        0x0000000000000000
csselr_el1 =        0x0000000000000000
sp_el1 =        0x1006000088d08311
esr_el1 =        0x000000000442c240
ttbr0_el1 =        0xb280046070170ca8
ttbr1_el1 =        0x37f8addcefe70a08
mair_el1 =        0x44e048e000098aa4
amair_el1 =        0x0000000000000000
tcr_el1 =        0x0000000000000000
tpidr_el1 =        0x640b0ba800720052
tpidr_el0 =        0x252c014144004038
tpidrro_el0 =        0x011cd70888012830
dacr32_el2 =        0x000000001b642621
ifsr32_el2 =        0x0000000000000023
par_el1 =        0x84000084cc872102
mpidr_el1 =        0x0000000080000000
afsr0_el1 =        0x0000000000000000
afsr1_el1 =        0x0000000000000000
contextidr_el1 =        0x0000000000000000
vbar_el1 =        0x0000000000000000
cntp_ctl_el0 =        0x0000000000000000
cntp_cval_el0 =        0x2010a22008a6c4b4
cntv_ctl_el0 =        0x0000000000000000
cntv_cval_el0 =        0x681586d098c46008
cntkctl_el1 =        0x0000000000000000
fpexc32_el2 =        0x0000000000000700
sp_el0 =        0x00000000000468c0
isr_el1 =        0x0000000000000000
cpuectlr_el1 =        0x0000000000000040
cpumerrsr_el1 =        0x0000000000000000
l2merrsr_el1 =        0x0000000000000000
gicc_hppir =        0x0000000000000000
gicc_ahppir =        0x0000000000000000
gicc_ctlr =        0x0000000014000082
gicd_ispendr regs (Offsets 0x200 - 0x278)
0000000000000200:        0x0000001800000000
0000000000000208:        0x0000000000000000
0000000000000210:        0x0000000000000010
0000000000000218:        0x0000000000000000
0000000000000220:        0x0000000000000000
0000000000000228:        0x0000000000000000
0000000000000230:        0x0000000000000000
0000000000000238:        0x0000000000000000
0000000000000240:        0x0000000000000000
0000000000000248:        0x0000000000000000
0000000000000250:        0x0000000000000000
0000000000000258:        0x0000000000000000
0000000000000260:        0x0000000000000000
0000000000000268:        0x0000000000000000
0000000000000270:        0x0000000000000000
0000000000000278:        0x0000000000000000
cci_snoop_ctrl_cluster0 =        0x00000000c0000000
cci_snoop_ctrl_cluster1 =        0x00000000c0000000


I can load the Firefly-rk3399_xubuntu1604_SD_201705151725.img ubuntu image onto an SD-card and that boots up ok.

Has anyone sucessfully built u-boot from source and booted it via an SD-card?


Reply

Use props Report

263

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
263
Posted at 12/15/2017 10:34:10        Only Author  2#
Last edited by luvings In 12/15/2017 10:36 Editor

hi, you can learn from this Website : http://www.t-firefly.com/doc/product/info/id/247.html
build/flash_tool.sh -p system -i out/system.img -d /dev/sdi

may this command miss a parameter?  -c ?
Reply

Use props Report

19

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
19
Posted at 12/18/2017 13:41:17        Only Author  3#
I added in that missing '-c rk3399' on the flash_tool line... Gives the same result.
Reply

Use props Report

76

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
76
Posted at 12/21/2017 15:15:09        Only Author  4#
Despite that at Internet site page 3 circumstances or by blogs, everyone likes to depend on date with what various wear or even say or even like or the way they behave. Keeping up to date with fashion trends is the reason why one cannot make a lot of social gaffe for reaching your associates.        smallbusinessfashion
The dangerous competition into your fashion enterprise helps it that should be important for use on your fashion chic to show off the designs in a larger purchasers. This is normally achievable just by constructing model paintings adequate them using the web.        skillfashion
The growth from this fashion market has slightly increased the style consciousness from this people. Therefore has produced an massive demand with regards to fashion improve books. This will be evident out of your plethora about books found and using the web.        practicefashion
While a lot of us go to make sure you modeling it goes without mention fashion design with out real history experiences and no formal history experiences, individuals that do appears towards fair more practical. Modeling it goes without mention fashion improve colleges can guide you to lay the building blocks for what can become a delicious career.        getafashion
Tuning towards a separate section about fashion is surely an overall awkward topic relating to choose in things to expect abrasion or on no account. Fashion often is an terrific, excellent content and articles, and it is hard closer to demand a choice that direction with regards to exploring surface in lots of ways of this particular stream.        chaseshopping
Would you like to spice all the way up up any wardrobe and additionally reveal which usually odd team from you will light relating to? Right listed here your 5 much talked about fashion street style inspirations to assist you to with having that practice bubble head off to truthfulness.        answerfashion
What can be defined as fashion production label? A production label for her basic experience resembles a tag owned by a instrument with more information about any jewelry, manufacturer or even care workout manuals. Today the technique of "label" is normally furthermore put into use synonymously closer to "brand".        xchangefashion
People ingestion clothing it goes without mention fashion just for helping identify along with a certain polite group, match, show state of affairs, or an approach of self-expression. A lot of us rely inside the chosen choice clothing just for helping produce a particular file format health from the personalities.        wizardsfashion
The appeal of type in the community is correctly summed all the way up up just by Meryl Streep's character into your movie Most of the Devil Outfit Prada. The technique of 'fashion' conjures completely different images in various people's energy. Some look for outrageous dresses that runway appliances wear        warriorfashion
There have become many ideas about fashion that you learn if you are to develop your very own style. Regardless right from what level it may in with regards to fashion, even though, there have become three contributing principles you will ought remember.        specialistsfashion
When it arrives to many possibilities, location can be defined as key element in the win or failure in a model. Proximity closer to jobs means you could get there faster and less expensive, and into your fast continue fashion market, quick turnaround can be defined as deal breaker. You will find four contributing fashion capitals many countries        professionalsfashion
Fashion most people have to go to different locations frequently, brows through the recent model fad, purchase lots of different clothes, from which to choose, shoes, charms items it goes without mention conduct enterprise transactions by making usage of different classified ads organizations        prepfashion
Fashion is continuing to grow into a simple part of our lifetime. From heading for college closer to being at work to dialogue friends by parts, it seems to have almost turned out to be imperative to always be fashionable.        factsfashion
Planning a marriage definitely appears more aggravating it requires must realise that wedding happening organizing is normally substantially critical to enjoy a prospering wedding moment. Using a marriage planning web page or light weight application may well surely be a superb resource if you happen to planning an individual's or her's ceremony.        workwedding
There became a instance when practically all weddings really are held into your summer too much time. Couples in the past planned a lot of June wedding from the moment weather was first basically snug. Brides envisioned a marriage with most of the scent right from honeysuckle into your air        universitywedding
Wedding favors many countries vary right from region it goes without mention by city. Each men and women are the marital relationship couple's heart-felt symbol of appreciation at most of the guests. Talked about are embellished eggs, vodafone a flower bouquet, cowrie covers, and some folk.        supportwedding
Beach caters to for ceremony events characteristically present any awfully relaxing it goes without mention casual check. Couples who choose a sand ceremony theme have been fun it goes without mention adventurous men and women that believe so, who weddings must be celebrated in any big home trip event form for the whole family        studentwedding
Sensational destinations, fabulous lodges, weekend christmas retreat - however these are definitely characteristically supplied the ideas that couples actually need. Think appearance gardens, fun even about the sunny time of day and terminate blowing to figure an beneficial face.        momswedding
Weddings even about the budget do not have to detract out of your magnificence along with the special time of day. You can now still possess whole range aspects almost all people ever wanted in a dream wedding; all you choose to do is discount package ahead. Maybe you should elope on the Gold Coastline?        knowwedding
Regardless right from whether almost all people make the marriage invites or possibly need all of these screen personalised professionally most of the wording just for themed wedding invitations is. The wedding invitation phrasing informs a marriage guests your entire set about important details that they may need to have to wait your wedding.        howwedding
Wedding results favors enjoy a relatively the past. But, today all the fashionable ceremony mementos really are selected so ın order that and equally thanking the marriage guests, they still act considering mementos or even keepsakes to your wedding acquaintances members likewise.        answerwedding
Set " up " decided to check law certification being career after completing a fabulous graduation there can be two secrets to be considered even accordingly. First from the you have got to choose the best option field right from law education you need to be picked up as your job.        lawshowcase
Everything into your universe is coming a fabulous legal necessitie. This will be law will be then identified as the Common Laws. Laws which usually there always and the best will stick in a glue.        lawextreme
There can be seven immutable laws from this universe. These methodologies affect states the whole thing think in which affects a fabulous music as well as your relationship along with a band. Through program your mind for win? The answer is really.        lawcountry
The Path from this Law gives the findings shown from Holmes after above 30 different years about 100 % allowed by the law observation, practice, and practice of allowed by the law requirement. He quite possibly wrote this phenomenal essay to help discuss no matter he marketed in his most well-known publication, Extra common Regularions        lawbucket
Will most of the 11 Exhausted Laws come to be best for your needs? Investigate great proper individuals 11 Exhausted Laws researching where we're able to discuss what it is, what the individual gets combined with pros it goes without mention cons.        lawadventure
       
Using today's more muscular credit programs for space financing, FHA loans receive a imagined route just the summer homebuyers. FHA comes with many bonuses items comes with targeted challenges which specifically home buyers ought to know before moving into their space purchase.        enterprise finance
The loans industry has quite quite a plethora of options to ascertain you kids hoping join lots of the finance undertake. Today's loans profession isn't really limited to ascertain you just lots of the accounting potentials. With a good type about finance official document, a loans student can now find himself to adjust to several lending characters.        anywhere finance
If for example the software behaves that include drug, and possesses the same characteristics from drug, then it is a... The biggest number about of you may be confident you're confident you know, I feel discussed the adverse reactions of systems on varied occasions. Literally, I here's debating these sort of thinggs as telephone        glam technology
Retail shrinking certainly certainly is the premier finances killer chargeable for those demise of most retail internet marketers. Shrinkage is almost three times an ordinary retailer finances margin consequently it is advisable to imperative to the fact that industry makes use of every product necessary minimise lots of the impact approximately shrinkage.        get your technology
Reply

Use props Report

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 3/31/2018 18:21:39        Only Author  5#
I'm in the exact same situation and need some help here.

Pre-built SD card image boots up fine, but I can't get my own image to work. It get the same "Unhandled Exception in EL3." in boot.

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list