-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing documentation of extra features #4
Comments
I just write up a draft version of the spec while reading the source code. Note that I'm not an English native, so please bare with me. The file is written in org-mode and exported to ASCII. It's just easier for me to edit document and I don't have any intent to keep the format. Once the content is done, we can fix the style later, IMO. If anyone want the file in org, let me know. I've added some comment in the doc with the form "[blah blah blah -- yashi]" I appreciate if you can give me some feed back. Without further ado:
|
Loading hdmi firmware just make an abort happen as soon as " msr daifclr, #4 /* enable aborts */" is done. Signed-off-by: Troy Kisky <[email protected]>
I played arround a little bit with the "advanced" features of this tool. I tried to upload not only the u-boot to "debrick" or initially install the device. I also pushed more data to the target. This was possible with the help of the source and the commented lines in the config file for imx6 (mx6_usb_work.conf).
...
#file:dcd,plug,load nnn,jump [nnn/header/header2]
#jump nnn - header is after last downloaded word
entire file is loaded before jump, needs load nnn as well
i.e. file:load nnn,jump nnn
#jump header - only length parameter is downloaded
#header - uses existing header(error if none), but clears plug and dcd values unless plug also specified
#header2 - uses 2nd header found(error if none)
#plug - without jump uses header but clears plug flag to stop after plug execution
#load nnn - load entire file to address
#../u-boot-imx6/u-boot.bin:dcd,plug,jump header
...
What I figured out so far:
#file:dcd,plug,load nnn,jump [nnn/header/header2]
dcd - this flags if the uploaded images contains a dcd or not.
clear_dcd, - this skips the execution of the dcd. Maybe skip_dcd we have been a better name.
#jump nnn - header is after last downloaded word
entire file is loaded before jump, needs load nnn as well
The jump header/header2 command makes only sense in combination of a dcd contained or maybe plug image. I am not sure what header2 exactly is.
plug - without jump uses header but clears plug flag to stop after plug execution
I am a little confused about this. I not had really gathered a jigsaw puzzle peaces in place.
load nnn - load entire file to address
For me this was only applicable to none dcd images. Otherewise the dcd was parsed and the image loaded to the containing address.
I got things working when I did the following steps:
I had some really trouble to boot a pure .bin image without dcd. I tried to upload the image with load and then execute a jump. The board was not booting. Then I remembered after execution of the ROM Code the CPU maybe is still in Thumb mode and I tried to prepend the image with a hack to switch from thum to arm what we are using during BDM debugging. But the board is still not booting. Maybe I'll debug this with BDI/PEEDI.
The text was updated successfully, but these errors were encountered: