96boards-hikey / tools-images-hikey960

Tools and images for HiKey960
BSD 2-Clause "Simplified" License
53 stars 47 forks source link

Fails to re-generate dt.img #31

Closed cloverpop closed 6 years ago

cloverpop commented 6 years ago

I updated the hikey960 kernel recently and found it fails to re-generate the dt.img

./mkdtimg -d hi3660-hikey960.dtb -s 2048 -c -o dt_test.img Traceback (most recent call last): File "./mkdtimg", line 159, in main() File "./mkdtimg", line 153, in main dtimg_head_info = dt_head_info('HSDT', dtimg_version, dtb_count) TypeError: expected bytes, str found

docularxu commented 6 years ago

This is because you are using python 3.x. Try python 2.7

cloverpop commented 6 years ago

Thanks. It resolved.