molejar / pyuboot Goto Github PK
View Code? Open in Web Editor NEWPython module for manipulating with U-Boot images and environment variables
License: Apache License 2.0
Python module for manipulating with U-Boot images and environment variables
License: Apache License 2.0
https://github.com/molejar/pyUBoot/blob/master/uboot/cli_mkimg.py#L194
eport()
should be export()
mkimg should extract the image
$ mkimg extract <image path>
'StdImage' object has no attribute 'compression'
uboot
mkimg extract
uboot==0.1.1
- click [required: ==7.0, installed: 7.0]
- easy-enum [required: ==0.2.0, installed: 0.2.0]
- fdt [required: ==0.1.2, installed: 0.1.2]
- click [required: >=5.0, installed: 7.0]
Hi
I was trying to figure out what are the differences between the 0.1 version released in pypi and the master branch.
Can we get a tag 0.1 tag for the version released in pypi? Or perhaps a new tagged release into pypi ^^
In any case thanks for this neat module.
Running your second example "how to create Multi-File U-Boot image with uboot module" from the README with python3, I get the following error:
Magic Number: 0x27051956
Header CRC: 0xEEC05BB6
Created: Mon Jul 24 13:04:33 2017
Data Size: 0.74 kB
Load Address: 0x00000000
Entry Address: 0x00000000
Data CRC: 0x9EB1726A
OS Type: LINUX
Arch Type: ARM
Image Type: MULTI
Compression: NONE
Image Name: Multi-File Test Image
Content: 2 Images
[ Image: 0 ]
Magic Number: 0x27051956
Header CRC: 0x6E60C70A
Created: Mon Jul 24 13:04:33 2017
Data Size: 0.50 kB
Load Address: 0x00000000
Entry Address: 0x00000000
Data CRC: 0x83E5C6FF
OS Type: LINUX
Arch Type: ARM
Image Type: FIRMWARE
Compression: NONE
Image Name: Firmware Test Image
Content: Binary Blob (512 Bytes)
[ Image: 1 ]
Image Name: Test Script Image
Created: Mon Jul 24 13:04:33 2017
Image Type: ARM Linux Script (uncompressed)
Data Size: 0.11 kB
Load Address: 0x00000000
Entry Address: 0x00000000
Content: 4 Commands
0) echo '===== U-Boot settings ====='
1) setenv stdin serial
2) setenv stdout serial
3) setenv rootdev mmcblk2p2
Traceback (most recent call last):
File "pull.py", line 54, in <module>
img = uboot.parse(data)
Unfortunately I encountered a uboot image with a \xa9 character in it,
RT-AC55UHP©
this throws an error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 28: invalid start byte
I have forked the project and will attempt a fix and submit a PR if you're open to that.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.