dirandad / lightcamera-openipc

Install OpenIPC on Light Camera (Lutec, Steinel)
15 stars 1 forks source link

./make_images.sh does not work under Ubuntu 22.04 or 20.04 #3

Closed heresiarch closed 1 year ago

heresiarch commented 1 year ago

I followed your steps but I'm unable to build the firmware with ipctool. I did not work in Ubuntu 22.04 nor 20.04

./make_images.sh hi3518ev300 ultimate
uImage.hi3516cv500
uImage.hi3516cv500.md5sum
rootfs.squashfs.hi3516cv500
rootfs.squashfs.hi3516cv500.md5sum
Traceback (most recent call last):
  File "./upgrade_bundle.py", line 89, in <module>
    main()
  File "./upgrade_bundle.py", line 85, in main
    write_bundle(**vars(args))
  File "./upgrade_bundle.py", line 46, in write_bundle
    size = os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/u-boot-hi3516cv500.bin'
# the content of /tmp is
ls -l /tmp 
total 10116
-rw-r--r-- 1 1001 123 8314880 Feb  5 09:55 rootfs.squashfs.hi3516cv500
-rw-r--r-- 1 1001 123      62 Feb  5 09:55 rootfs.squashfs.hi3516cv500.md5sum
-rw-r--r-- 1 1001 123 2034956 Feb  5 09:48 uImage.hi3516cv500
-rw-r--r-- 1 1001 123      53 Feb  5 09:55 uImage.hi3516cv500.md5sum
heresiarch commented 1 year ago

With the direct command it is working:

wget -qO-  \
  https://github.com/OpenIPC/firmware/releases/download/latest/openipc.hi3516ev300-nor-lite.tgz \
  | tar xvfz - -C /tmp
./upgrade_bundle.py \
  --kernel /tmp/uImage.hi3516ev300 \
  --rootfs /tmp/rootfs.squashfs.hi3516ev300 \
  -o upgrade.ev300 $PACK \
  -i \
  --cma 'mmz=anonymous,0,0x42000000,96M mmz_allocator=cma'
uImage.hi3516ev300
uImage.hi3516ev300.md5sum
rootfs.squashfs.hi3516ev300
rootfs.squashfs.hi3516ev300.md5sum
dirandad commented 1 year ago

I have commit modification last week to make_image.sh so if you have clone ipctool repository from master, it could still not be yet the last version that manage OpenIPC flavor. update make_image.sh from here : https://github.com/dirandad/openipc-ipctool/blob/patch-1/tools/make_images.sh update upgrade_bundle.py from here : https://github.com/dirandad/openipc-ipctool/blob/patch-2/tools/upgrade_bundle.py

heresiarch commented 1 year ago

I could build the image following your instructions. Could you please include a sample firmware in the repo which is bulletproof in case image creation fails again?

dirandad commented 1 year ago

Hello, here is the firmware generated with the openipc script: https://github.com/dirandad/lightcamera-openipc/blob/main/L620/firmware/upgrade.hi3518ev300

heresiarch commented 1 year ago

I flashed the camera, that was real pain with dismantling the socket. I also fried a diode of the reset button card maybe a reverse polarity or overvoltage protection device. I used FTDI Serial adapter and Putty under Linux, the pressing CTRL+C fast enough after powering the device was not easy. But the camera module works with OpenIPC. Very well described! The hot glue is very easy to remove in one piece when you use alcohol or isopropyl based hand sanitizer.

dirandad commented 1 year ago

@heresiarch if your Camera is still disassembled, can you give me the label that you have on a SSOP 20 Chip (20 pins) that you have on the light extension card ? I will need it for analysis. Mine is not the original label. Thank you

heresiarch commented 1 year ago

Hello,

I was away I will send a Pic when I‘m back tomorrow. Camera is still disassembled😃 Best Regards, René Adrien Dirand @.***> schrieb am So. 19. Feb. 2023 um 18:49:

@heresiarch https://github.com/heresiarch if your Camera is still disassembled, can you give me the label that you have on a SSOP 20 Chip (20 pins) that you have on the light extension card ? I will need it for analysis. Mine is not the original label. Thank you

— Reply to this email directly, view it on GitHub https://github.com/dirandad/lightcamera-openipc/issues/3#issuecomment-1436050503, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMBMHKKEBS6TQ7FT2UBM7DWYJMIZANCNFSM6AAAAAAURXTU5A . You are receiving this because you were mentioned.Message ID: @.***>

dirandad commented 1 year ago

Any News ? 😃