Skip to content

Commit

Permalink
fix build image script
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Lyamin committed Jun 9, 2024
1 parent 2ac78ee commit 1ed5c5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ tags
CMakeLists.txt
cmake-build-debug
*.mk
*.img
2 changes: 1 addition & 1 deletion bsp/allwinner/d1s_d1h/mksdimg_D1H.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#/bin/sh
./mkimage_D1H -T sunxi_toc1 -d toc1.cfg sd.bin
./mkimage_D1H -T sunxi_toc1 -d toc1_D1H.cfg sd.bin
# offset: 8K of spl,+48K of toc1
# dd if=/dev/zero of=image.img bs=1M count=150
sudo dd if=tools/boot0_sdcard_sun20iw1p1.bin of=image.img bs=8192 seek=16 #bs=1024 seek=8
Expand Down
2 changes: 1 addition & 1 deletion bsp/allwinner/d1s_d1h/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@
CXXFLAGS = CFLAGS

DUMP_ACTION = OBJDUMP + ' -D -S $TARGET > rtthread.asm\n'
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + './mksdimg.sh\n'
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' + './mksdimg_D1H.sh\n'

0 comments on commit 1ed5c5e

Please sign in to comment.