Ubuntu 이미지 굽기시 에러 문의

안녕하세요.

주말이 되어 D3-G를 만져보기 시작했습니다.

아래의 문서들을 참고 했습니다.

eMMC에 초기 OS가 없는 것으로 확인 되어, USB(FWDN) 모드로 부팅후 ubuntu-22.04-topst-weston_desktop-v1.0.0.zip 이미지를 eMMC로 플래싱을 하고자 하는데요.

일단 에러가 떠서 진행이 안됩니다.

pyohwan@hp-elitedesk-705-g5-desktop-mini-debian12:~/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0$ ./fwdn.sh 
[main:30] FWDN V8 v1.4.12 - 2022.8.19 13:49:14
[OpenPort:75] Failed to open device: LIBUSB_ERROR_ACCESS
[OpenPort:44] Failed to open USB Port
[ConnectUSBAndLoadFWDNRom:248] Please re-connect or reboot the device.

USB(FWDN) 모드로 부팅이 안됐나 싶어서 도큐먼트를 읽어 봤는데, eMMC에 이미지가 없다면 기본적으로 USB 부팅 모드라고 적혀있네요. 혹시나 몰라 보드에 전원 넣고 RESET LED 들어온 상태 확인후 , BOOT 단추를 누른 상태에서 RESET 단추를 눌러도 봤습니다.

USB-C 케이블을 잘못 됐나 싶어 2개를 바꿔가며 해봤는데 똑같습니다.

HOST PC OS

pyohwan@hp-elitedesk-705-g5-desktop-mini-debian12:~/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

lsusb 했을때 Telechips 잘 잡힘.

pyohwan@hp-elitedesk-705-g5-desktop-mini-debian12:~/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0$ lsusb 
Bus 007 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 006 Device 002: ID 320f:5055 RDR GS85
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 25a7:fa7c Areson Technology Corp Xlite Mini Wireless
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 016: ID 140e:b201 Telechips, Inc. 
Bus 002 Device 002: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

안녕하세요.

최근에 fwdn 의 업데이트가 있었는데 Ubuntu weston zip 파일에 업데이트가 안되어 있었네요.

github 소스를 repo sync 하시면 tools/fwdn_d3 폴더에 Linux 용 fwdn 바이너리를 찾으실수 있습니다. 이것으로Ubuntu weston zip 파일 해제시 나오는 폴더 내의 fwdn 을 업데이트 하시고 다시 시도해봐 주세요.

주말이라 차주 월요일에 업데이트 예정입니다

더 궁금하신 사항은 댓글 주세요

고맙습니다

Github URI가 여기 맞죠?

fwdn 바이너리를 바꾸고 실행 권한을 줬는데도, 에러 나용은 같습니다.

pyohwan@hp-elitedesk-705-g5-desktop-mini-debian12:~/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0$ ls -al fwdn
-r-xr-xr-x 1 pyohwan pyohwan 394424 Aug  3 16:39 fwdn
pyohwan@hp-elitedesk-705-g5-desktop-mini-debian12:~/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0$ ./fwdn.sh 
[main:27] FWDN V8 v2.0.0 - 2024.10.24 13:05:28
[OpenPort:76] Failed to open device: LIBUSB_ERROR_ACCESS
[OpenPort:46] Failed to open USB Port
[ConnectUSBAndLoadFWDNRom:279] Please re-connect or reboot the device.

평일에 살펴봐주시면 감사하겠습니다.

안녕하세요.

해당 내용을 보니, 장치는 정상적으로 찾았고 권한 문제로 보이는데요.

혹시 아래 페이지의 2.2.6 절에서 udev rules도 추가를 하셨을지요 ?

TOPST

확인 부탁 드립니다.

고맙습니다.

아뇨. 그쪽 문서대로 하지 않았습니다. fwdn실행하기 전에 2.2절 전체를 먼저 해야 하는 거죠?

안녕하세요.

2.2.6 절에 있는 udev rules 만 설정해 주시면 될 것 같습니다.

Quick guide 쪽에 해당 내용이 추가되어야 하는 부분이네요.

확인 부탁 드립니다.

1 Like

오. 통과됐습니다.

부팅을 했더니 터미널, 폴더 같은 앱이 있는 화면으로 들어가네요.

pyohwan@hp-elitedesk-705-g5-desktop-mini-debian12:~/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0$ ./fwdn.sh 
[main:27] FWDN V8 v2.0.0 - 2024.10.24 13:05:28
[LoadFWDNRom:448] Start to load FWDN rom
[LoadMCERT:870] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/mcert.bin
[LoadHSM:907] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/hsm.cs.bin
[SendFWDNHeader:964] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/fwdn.rom - Header
[SendFWDNBody_V8:782] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/fwdn.rom - Body
[LoadFWDNRom:463] Complete to load FWDN rom
[GetFWDNRomVersion:1919] fwdn.rom version : 23.5.22
[GetFWDNRomVersion:1935] PMU user status register : 0x00440000
[PrintBootFailureReason:1876] The boot mode of the board is 'eMMC Only' - BM : 5
[PrintBootFailureReason:1884] However, the board is operating in USB mode for the following reasons
[PrintBootFailureReason:1885] If it is not the intended boot mode, check the reasons below
[PrintBootFailureReason:1889] Boot failure reason : Primary image - SC F/W
[PrintBootFailureReason:1894] Boot failure reason : Secondary image - SC F/W
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/dram_params.bin
[PrintDeviceInfo:1533] --------------Device info-------------
[PrintDeviceInfo:1534] 

----- Detail of Storages -----
#### eMMC Info ####
Manufacture ID: 0x15
OEM: 0x100
Name: BJTD4 
User Capacity: 29.1 GiB (31268536320 Byte)
Boot Capacity: 4 MiB (4194304 Byte)
RPMB Capacity: 4 MiB (4194304 Byte)
Speed Mode: HS200

----- Summary of Storages -----
eMMC : O
SNOR : X
UFS : X
- O : Init success
- X : Init failed or not exist

----- Summary of DRAM Init -----
DRAM Init : Success (Result 0x0 )
DRAM Size : 8192MB

[PrintDeviceInfo:1535] --------------------------------------
[main:157] Complete FWDN
[PrintCurTime:112] 25/08/04-17:04:02
[main:27] FWDN V8 v2.0.0 - 2024.10.24 13:05:28
[GetFWDNRomVersion:1919] fwdn.rom version : 23.5.22
[GetFWDNRomVersion:1935] PMU user status register : 0x00440000
[PrintBootFailureReason:1876] The boot mode of the board is 'eMMC Only' - BM : 5
[PrintBootFailureReason:1884] However, the board is operating in USB mode for the following reasons
[PrintBootFailureReason:1885] If it is not the intended boot mode, check the reasons below
[PrintBootFailureReason:1889] Boot failure reason : Primary image - SC F/W
[PrintBootFailureReason:1894] Boot failure reason : Secondary image - SC F/W
[LowformatCommand:1702] Start low-format
[LowformatCommand:1703] low-format can take a long time
[LowformatCommand:1732] Complete low-format
[main:157] Complete FWDN
[PrintCurTime:112] 25/08/04-17:04:02
[main:27] FWDN V8 v2.0.0 - 2024.10.24 13:05:28
[GetFWDNRomVersion:1919] fwdn.rom version : 23.5.22
[GetFWDNRomVersion:1935] PMU user status register : 0x00440000
[PrintBootFailureReason:1876] The boot mode of the board is 'eMMC Only' - BM : 5
[PrintBootFailureReason:1884] However, the board is operating in USB mode for the following reasons
[PrintBootFailureReason:1885] If it is not the intended boot mode, check the reasons below
[PrintBootFailureReason:1889] Boot failure reason : Primary image - SC F/W
[PrintBootFailureReason:1894] Boot failure reason : Secondary image - SC F/W
[main:126] Start write command
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/bconf.single.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/bconf.single.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/mcert.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/mcert.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/dram_params.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/dram_params.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/hsm.cs.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/hsm.cs.bin
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/scfw.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/scfw.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/optee.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/optee.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/subcore_optee.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/subcore_optee.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca72_bl1.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca72_bl1.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca53_bl1.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca53_bl1.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca72_bl2.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca72_bl2.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca53_bl2.rom
[GetFileAndWriteCommand:1078] /home/pyohwan/topst-d3-g/ubuntu-22.04-topst-weston_desktop-v1.0.0/boot-firmware/./prebuilt/ca53_bl2.rom
[main:134] Complete write command
[main:157] Complete FWDN
[PrintCurTime:112] 25/08/04-17:04:02
100% [||||||||||||||||||||||||||||||] 864768/864768[main:27] FWDN V8 v2.0.0 - 2024.10.24 13:05:28
[GetFWDNRomVersion:1919] fwdn.rom version : 23.5.22
[GetFWDNRomVersion:1935] PMU user status register : 0x00440000
[PrintBootFailureReason:1876] The boot mode of the board is 'eMMC Only' - BM : 5
[PrintBootFailureReason:1884] However, the board is operating in USB mode for the following reasons
[PrintBootFailureReason:1885] If it is not the intended boot mode, check the reasons below
[PrintBootFailureReason:1889] Boot failure reason : Primary image - SC F/W
[PrintBootFailureReason:1894] Boot failure reason : Secondary image - SC F/W
[main:126] Start write command
[GetFileAndWriteCommand:1078] d3g.fai
[main:134] Complete write command
[main:157] Complete FWDN
[PrintCurTime:112] 25/08/04-17:08:09
100% [||||||||||||||||||||||||||||||] 4291763824/4291763824
** When writing FAI files without low-format, there may be garbage values in partition where data is not written.