embeded/raspberry pi2022. 2. 9. 22:31

0.96인치 128x64 화이트 OLED

1인치도 안되서 그런가 무지 작긴 하네

16x16 폰트로 8*4 대충.. 32글짜 정도 표시할 수 있으려나?

 

라즈베리 카메라

머.. 싼걸로 사서 jetson nano 에는 쓸 수 없다지만

문득.. 카메라가 다르면 드라이버 차이로 cpu 점유율이 어떻게 달라지나 궁금하긴 하네?

'embeded > raspberry pi' 카테고리의 다른 글

rpi opencv python pid servo  (0) 2022.03.08
rpi i2c oled  (0) 2022.02.10
rpi csi to dsi...  (0) 2022.01.21
rpi 7" dsi  (0) 2022.01.21
rpi DSI 7인치 터치 스크린  (0) 2022.01.20
Posted by 구차니
embeded/jetson2022. 2. 9. 10:24

전원을 넣어주어도 금세 꺼져서, 운이 좋게 한번 부팅되었을때 로그를 보는데도 원인을 모르겠다.

[링크 : https://forums.developer.nvidia.com/t/trusty-image-missing-on-bootup/60519]

 

도대체 이녀석에게 무슨일이 있었던 걸까 -ㅁ-

방열판 고정기구(별나사 고정되는) 안에 캐패시터 하나가 완전 가루가 되었네

 

느낌으로는... pmic i2c 통신이 안되서 부팅하다가 전원부족으로 강제종료 아닐까 싶은데...

[0000.797] Verifying TBC in OdmNonSecureSBK mode
[0000.807] Bootloader load address is 0xa0000000, entry address is 0xa0000258
[0000.814] Bootloader downloaded successfully.
[0000.819] Downloaded Tboot-CPU binary to 0xa0000258
[0000.824] MAX77620_GPIO5 configured
[0000.827] CPU power rail is up
[0000.830] CPU clock enabled
[0000.834] Performing RAM repair
[0000.836] Updating A64 Warmreset Address to 0xa00002e9
[0000.842] Loading NvTbootBootloaderDTB
[0002.153] Verifying NvTbootBootloaderDTB in OdmNonSecureSBK mode
[0002.224] Bootloader DTB Load Address: 0x83000000
[0002.229] Loading NvTbootKernelDTB
[0003.540] Verifying NvTbootKernelDTB in OdmNonSecureSBK mode
[0003.611] Kernel DTB Load Address: 0x83100000
[0003.619] Loading cboot binary
[0005.304] Verifying EBT in OdmNonSecureSBK mode
[0005.345] Bootloader load address is 0x92c00000, entry address is 0x92c00258
[0005.352] Bootloader downloaded successfully.
[0005.544] Using BFS PT to query partitions
[0005.548] Next binary entry address: 0x92c00258
[0005.553] BoardId: 3448
[0005.557] Overriding pmu board id with proc board id
[0005.562] Display board id is not available
[0007.061] Verifying SC7EntryFw in OdmNonSecureSBK mode
[0007.117] /bpmp deleted
[0007.119] SC7EntryFw header found loaded at 0xff700000
[0007.307] OVR2 PMIC
[0007.309] Bpmp FW successfully loaded
[0007.325] WB0 init successfully at 0xff780000
[0007.329] Set NvDecSticky Bits
[0007.333] GSC2 address ff53fffc value c0edbbcc
[0007.339] GSC MC Settings done
[0007.344] TOS Image length 53680
[0007.347]  Monitor size 53680
[0007.350]  OS size 0
[0007.511] Secure Os AES-CMAC Verification Success!
[0007.516] TOS image cipher info: plaintext
[0007.520] Loading and Validation of Secure OS Successful
[0007.536] SC7 Entry Firmware - 0xff700000, 0x4000
[0007.540] NvTbootPackSdramParams: start.
[0007.545] NvTbootPackSdramParams: done.
[0007.549] Tegraboot started after 53290 us
[0007.553] Basic modules init took 5647304 us
[0007.557] NvTbootQspiFlashIoctl: Opcode = 1 not supported
[0007.562] Sec Bootdevice Read Time = 12 ms, Read Size = 65 KB
[0007.568] Sec Bootdevice Write Time = 0 ms, Write Size = 0 KB
[0007.573] Storage Device Read Time = 6740 ms, Read Size = 2306 KB
[0007.579] Storage Device Write Time = 0 ms, Write Size = 0 KB
[0007.585] Next stage binary read took 1530458 us
[0007.589] Carveout took -1542138 us
[0007.593] CPU initialization took 2041862 us
[0007.597] Total time taken by TegraBoot 7677486 us

[0007.601] Starting CPU & Halting co-processor

64NOTICE:  BL31: v1.3(release):b5eeb33f7
NOTICE:  BL31: Built : 12:09:37, Jul 26 2021
ERROR:   Error initializing runtime service trusty_fast
[0007.724] RamCode = 0
[0007.728] LPDDR4 Training: Read DT: Number of tables = 2
[0007.733] EMC Training (SRC-freq: 204000; DST-freq: 1600000)
[0007.746] EMC Training Successful
[0007.749] 408000 not found in DVFS table
[0007.756] RamCode = 0
[0007.759] DT Write: emc-table@204000 succeeded
[0007.764] DT Write: emc-table@1600000 succeeded
[0007.769] LPDDR4 Training: Write DT: Number of tables = 2
[0007.964]
[0007.965] Debug Init done
[0007.968] Marked DTB cacheable
[0007.971] Bootloader DTB loaded at 0x83000000
[0007.975] Marked DTB cacheable
[0007.978] Kernel DTB loaded at 0x83100000
[0007.982] DeviceTree Init done
[0007.995] Pinmux applied successfully
[0007.999] gicd_base: 0x50041000
[0008.003] gicc_base: 0x50042000
[0008.006] Interrupts Init done
[0008.010] Using base:0x60005090 & irq:208 for tick-timer
[0008.015] Using base:0x60005098 for delay-timer
[0008.020] platform_init_timer: DONE
[0008.023] Timer(tick) Init done
[0008.027] osc freq = 38400 khz
[0008.031]
[0008.032] Welcome to L4T Cboot
[0008.035]
[0008.036] Cboot Version: 00.00.2018.01-t210-c952b4e6
[0008.041] calling constructors
[0008.044] initializing heap
[0008.047] initializing threads
[0008.049] initializing timers
[0008.052] creating bootstrap completion thread
[0008.057] top of bootstrap2()
[0008.060] CPU: ARM Cortex A57
[0008.062] CPU: MIDR: 0x411FD071, MPIDR: 0x80000000
[0008.067] initializing platform
[0008.074] Manufacturer: MF = 0xc2, ID MSB = 0x25
[0008.079] ID LSB = 0x36, ID-CFI len = 194 bytes
[0008.083] Macronix QSPI chip present
[0008.087] SPI device register
[0008.090] init boot device
[0008.092] allocating memory for boot device(SPI)
[0008.097] registering boot device
[0008.106] sdmmc node status = okay
[0008.110] sdcard instance = 0
[0008.112] sdmmc cd-inverted
[0008.115] sdcard gpio handle 0x5b
[0008.118] sdcard gpio pin 0xc9
[0008.121] sdcard gpio flags 0x0
[0008.124] vmmc-supply 0x9d
[0008.127] Instance: 0
[0008.129] Allocating memory for context
[0008.133] enabling clock
[0008.135] sd card init
[0008.138] Check card present and stable
[0008.141] Send command 0
[0008.158] Send command 3
[0008.162] Set RCA for the card
[0008.165] Query card specific data by command 9
[0008.171] Parse CSD data
[0008.174] Send command 7
[0008.184] Calling sd device register
[0008.188] Init sdcard
[0008.190] Allocating memory for boot device
[0008.194] Registering user device
[0008.207] Enable APE clock
[0008.210] Un-powergate APE partition
[0008.213] of_register: registering tegra_udc to of_hal
[0008.218] of_register: registering inv20628-driver to of_hal
[0008.224] of_register: registering ads1015-driver to of_hal
[0008.229] of_register: registering lp8557-bl-driver to of_hal
[0008.235] of_register: registering bq2419x_charger to of_hal
[0008.241] of_register: registering bq27441_fuel_gauge to of_hal
[0008.252] gpio framework initialized
[0008.256] of_register: registering tca9539_gpio to of_hal
[0008.261] of_register: registering tca9539_gpio to of_hal
[0008.266] of_register: registering i2c_bus_driver to of_hal
[0008.272] of_register: registering i2c_bus_driver to of_hal
[0008.277] of_register: registering i2c_bus_driver to of_hal
[0008.283] pmic framework initialized
[0008.286] of_register: registering max77620_pmic to of_hal
[0008.292] regulator framework initialized
[0008.296] of_register: registering tps65132_bl_driver to of_hal
[0008.302] initializing target
[0008.308] gpio_driver_register: register 'tegra_gpio_driver' driver
[0008.316] board ID = D78, board SKU = 0
[0008.319] Skipping Z3!
[0008.324] fixed regulator driver initialized
[0008.341] initializing OF layer
[0008.344] NCK carveout not present
[0008.348] Skipping dts_overrides
[0008.352] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.368] I2C Bus Init done
[0008.371] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.381] I2C Bus Init done
[0008.384] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.394] I2C Bus Init done
[0008.397] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.407] I2C Bus Init done
[0008.409] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.420] I2C Bus Init done
[0008.422] of_children_init: Ops found for compatible string maxim,max77620
[0008.432] max77620_init using irq 118
[0008.437] register 'maxim,max77620' pmic
[0008.442] gpio_driver_register: register 'max77620-gpio' driver
[0008.448] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.458] I2C Bus Init done
[0008.462] NCK carveout not present
[0008.471] Find /i2c@7000c000's alias i2c0
[0008.475] get eeprom at 1-a0, size 256, type 0
[0008.484] Find /i2c@7000c500's alias i2c2
[0008.487] get eeprom at 3-a0, size 256, type 0
[0008.492] get eeprom at 3-ae, size 256, type 0
[0008.496] pm_ids_update: Updating 1,a0, size 256, type 0
[0008.502] I2C slave not started
[0008.505] I2C write failed
[0008.507] Writing offset failed
[0008.510] eeprom_init: EEPROM read failed
[0008.514] pm_ids_update: eeprom init failed
[0008.518] pm_ids_update: Updating 3,a0, size 256, type 0
[0008.548] pm_ids_update: The pm board id is 3448-0000-200
[0008.555] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0008.564] pm_ids_update: pm id update successful
[0008.568] pm_ids_update: Updating 3,ae, size 256, type 0
[0008.598] pm_ids_update: The pm board id is 3449-0000-200
[0008.604] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0008.612] pm_ids_update: pm id update successful
[0008.643] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0008.648] shim_eeprom_update_mac:267: Failed to update 0 MAC address in DTB
[0008.656] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0008.662] shim_eeprom_update_mac:267: Failed to update 1 MAC address in DTB
[0008.670] updating /chosen/nvidia,ethernet-mac node 00:04:4b:e5:59:5d
[0008.677] Plugin Manager: Parse ODM data 0x00084000
[0008.690] shim_cmdline_install: /chosen/bootargs: earlycon=uart8250,mmio32,0x70006000
[0008.704] Find /i2c@7000c000's alias i2c0
[0008.708] get eeprom at 1-a0, size 256, type 0
[0008.717] Find /i2c@7000c500's alias i2c2
[0008.721] get eeprom at 3-a0, size 256, type 0
[0008.725] get eeprom at 3-ae, size 256, type 0
[0008.729] pm_ids_update: Updating 1,a0, size 256, type 0
[0008.735] I2C slave not started
[0008.738] I2C write failed
[0008.740] Writing offset failed
[0008.743] eeprom_init: EEPROM read 

[0008.747] pm_ids_update: eeprom init failed
[0008.751] pm_ids_update: Updating 3,a0, size 256, type 0
[0008.782] pm_ids_update: The pm board id is 3448-0000-200
[0008.788] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0008.795] pm_ids_update: pm id update successful
[0008.799] pm_ids_update: Updating 3,ae, size 256, type 0
[0008.829] pm_ids_update: The pm board id is 3449-0000-200
[0008.836] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0008.842] pm_ids_update: pm id update successful
[0008.873] Add serial number:1422019083619 as DT property
[0008.880] Applying platform configs
[0008.887] platform-init is not present. Skipping
[0008.891] calling apps_init()
[0008.917] Found 14 GPT partitions in "sd0"
[0008.921] Proceeding to Cold Boot
[0008.924] starting app android_boot_app
[0008.928] Device state: unlocked
[0008.931] display console init
[0008.939] could not find regulator
[0008.942] hdmi cable connected
[0008.958] edid read success
[0008.976] DT entry for leds-pwm not found
[0008.979] edid read success
[0008.982] width = 640, height = 480, frequency = 25174825
[0008.987] width = 640, height = 480, frequency = 25174825
[0008.993] width = 640, height = 480, frequency = 25174825
[0008.998] width = 1920, height = 1080, frequency = 148500000
[0009.004] width = 720, height = 480, frequency = 27000000
[0009.009] width = 720, height = 480, frequency = 27000000
[0009.015] width = 720, height = 480, frequency = 26973026
[0009.020] width = 720, height = 576, frequency = 26973026
[0009.025] width = 1280, height = 720, frequency = 74175824
[0009.031] width = 1280, height = 720, frequency = 74175824
[0009.036] width = 1920, height = 1080, frequency = 148351648
[0009.042] width = 1920, height = 1080, frequency = 148351648
[0009.048] width = 1920, height = 1080, frequency = 74175824
[0009.053] width = 1920, height = 1080, frequency = 74175824
[0009.059] width = 1920, height = 1080, frequency = 74175824
[0009.064] Best mode Width = 1920, Height = 1080, freq = 148351648
[0009.072] tmds-config node not found
[0009.076] pmc_set_io_pad_voltage: Error -2 retrieving platform-io-pad-voltagepropsetting 'avdd-io-hdmi-dp' regulator                                                                                                                         to 1050000 micro volts
[0009.091] setting 'vdd-1v8' regulator to 1800000 micro volts
[0009.098] could not find regulator
[0009.102] could not find regulator
[0009.105] could not find regulator
[0009.133] using default cmu settings
[0009.137] dc_hdmi_enable, starting HDMI initialisation
[0009.143] dc_hdmi_enable, HDMI initialisation complete
[0009.148] list and configure display window
[0009.157] display console init completed
[0009.168] subnode volume_up is not found !
[0009.172] subnode back is not found !
[0009.175] subnode volume_down is not found !
[0009.179] subnode menu is not found !
[0009.183] Gpio keyboard init success
[0009.233] found decompressor handler: lz4-legacy
[0009.248] decompressing blob (type 1)...
[0009.318] load_bmp_blob: panelresolution=1080 type=3
[0009.368] decompressor handler not found
[0009.372] load_firmware_blob: Firmware blob loaded, entries=2
[0009.378] XUSB blob version 0 size 126464 @ 0x934b928c
[0009.384] -------> se_aes_verify_sbk_clear: 747
[0009.388] se_aes_verify_sbk_clear: Error
[0009.392] SE operation failed
[0009.395] bl_battery_charging: connected to external power supply
[0009.407] device_query_partition_size: failed to open partition sd0:MSC !
[0009.414] MSC Partition not found
[0009.420] device_query_partition_size: failed to open partition sd0:USP !
[0009.427] USP partition read failed!
[0009.430] blob_init: blob-partition USP header read failed
[0009.436] android_boot Unable to update recovery partition
[0009.441] kfs_getpartname: name = LNX
[0009.445] Loading kernel from LNX
[0009.586] load kernel from storage
[0009.597] decompressor handler not found
[0009.680] Successfully loaded kernel and ramdisk images
[0009.686] board ID = D78, board SKU = 0
[0009.690] sdmmc node status = okay
[0009.693] sdcard instance = 0
[0009.696] sdmmc cd-inverted
[0009.699] sdcard gpio handle 0x5b
[0009.702] sdcard gpio pin 0xc9
[0009.705] sdcard gpio flags 0x0
[0009.708] vmmc-supply 0x9d
[0009.711] cd_gpio_pin = 201
[0009.714] pin_state = 0
[0009.716] Found sdcard
[0009.718] SD-card IS present ...
[0009.721] load_and_boot_kernel: SD card detected OK
[0009.727] load_bmp_blob: panelresolution=1080 type=3
[0010.223] display bmp image done
[0010.226] NCK carveout not present
[0010.229] Skipping dts_overrides
[0010.233] NCK carveout not present
[0010.242] Find /i2c@7000c000's alias i2c0
[0010.246] get eeprom at 1-a0, size 256, type 0
[0010.255] Find /i2c@7000c500's alias i2c2
[0010.258] get eeprom at 3-a0, size 256, type 0
[0010.263] get eeprom at 3-ae, size 256, type 0
[0010.267] pm_ids_update: Updating 1,a0, size 256, type 0
[0010.273] I2C slave not started
[0010.276] I2C write failed
[0010.278] Writing offset failed
[0010.281] eeprom_init: EEPROM read failed
[0010.285] pm_ids_update: eeprom init failed
[0010.289] pm_ids_update: Updating 3,a0, size 256, type 0
[0010.319] pm_ids_update: The pm board id is 3448-0000-200
[0010.326] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0010.335] pm_ids_update: pm id update successful
[0010.339] pm_ids_update: Updating 3,ae, size 256, type 0
[0010.369] pm_ids_update: The pm board id is 3449-0000-200
[0010.375] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0010.383] pm_ids_update: pm id update successful
[0010.414] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0010.419] shim_eeprom_update_mac:267: Failed to update 0 MAC address in DTB
[0010.427] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0010.433] shim_eeprom_update_mac:267: Failed to update 1 MAC address in DTB
[0010.441] updating /chosen/nvidia,ethernet-mac node 00:04:4b:e5:59:5d
[0010.448] Plugin Manager: Parse ODM data 0x00084000
[0010.461] shim_cmdline_install: /chosen/bootargs: earlycon=uart8250,mmio32,0x70006000
[0010.469] Add serial number:1422019083619 as DT property
[0010.478] "bpmp" doesn't exist, creating
[0010.484] Updated bpmp info to DTB
[0010.488] Updated initrd info to DTB
[0010.492] "proc-board" doesn't exist, creating
[0010.498] Updated board info to DTB
[0010.501] "pmu-board" doesn't exist, creating
[0010.507] Updated board info to DTB
[0010.510] "display-board" doesn't exist, creating
[0010.516] Updated board info to DTB
[0010.520] "reset" doesn't exist, creating
[0010.524] Updated reset info to DTB
[0010.528] Cmdline: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 la                                                                                                                        ne_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport                                                                                                                        =lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_e                                                                                                                        dp_mv=1075 core_edp_ma=4000 gpt tegra_fbmem=0x800000@0x92cb4000 is_hdmi_initialised=1
[0010.567] DTB cmdline: earlycon=uart8250,mmio32,0x70006000
[0010.573] boot image cmdline: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fb                                                                                                                        con=map:0 net.ifnames=0
[0010.586] Updated bootarg info to DTB
[0010.589] Adding uuid 00000001644476401800000006018280 to DT
[0010.595] Adding eks info 0 to DT
[0010.601] WARNING: Failed to pass NS DRAM ranges to TOS, err: -7
[0010.607] Updated memory info to DTB
[0010.612] Updated system-lp0-disable info to DTB
[0010.620] set vdd_core voltage to 1075 mv
[0010.624] setting 'vdd-core' regulator to 1075000 micro volts

 

 

전원이 부족할 경우(USB3.0 허브/ 외부전원 사용)

정상 부팅 로그와 비교해보니 imx219(카메라) 초기화 해보면서 전원 부족으로 죽은 듯?

[0000.126] [TegraBoot] (version 00.00.2018.01-l4t-33e7fa82)
[0000.131] Processing in cold boot mode Bootloader 2
[0000.135] A02 Bootrom Patch rev = 1023
[0000.139] Power-up reason: pmc por
[0000.142] No Battery Present
[0000.145] pmic max77620 reset reason
[0000.148] pmic max77620 NVERC : 0x40
[0000.152] RamCode = 0
[0000.154] Platform has DDR4 type RAM
[0000.157] max77620 disabling SD1 Remote Sense
[0000.161] Setting DDR voltage to 1125mv
[0000.165] Serial Number of Pmic Max77663: 0x291ae2
[0000.173] Entering ramdump check
[0000.176] Get RamDumpCarveOut = 0x0
[0000.179] RamDumpCarveOut=0x0,  RamDumperFlag=0xe59ff3f8
[0000.184] Last reboot was clean, booting normally!
[0000.189] Sdram initialization is successful 
[0000.193] SecureOs Carveout Base=0x00000000ff800000 Size=0x00800000
[0000.199] Lp0 Carveout Base=0x00000000ff780000 Size=0x00001000
[0000.205] BpmpFw Carveout Base=0x00000000ff700000 Size=0x00080000
[0000.211] GSC1 Carveout Base=0x00000000ff600000 Size=0x00100000
[0000.217] GSC2 Carveout Base=0x00000000ff500000 Size=0x00100000
[0000.223] GSC4 Carveout Base=0x00000000ff400000 Size=0x00100000
[0000.228] GSC5 Carveout Base=0x00000000ff300000 Size=0x00100000
[0000.234] GSC3 Carveout Base=0x000000017f300000 Size=0x00d00000
[0000.250] RamDump Carveout Base=0x00000000ff280000 Size=0x00080000
[0000.256] Platform-DebugCarveout: 0
[0000.260] Nck Carveout Base=0x00000000ff080000 Size=0x00200000
[0000.266] Non secure mode, and RB not enabled.
[0000.272] Invalid GPT Partition
[0000.287] Using BFS PT to query partitions 
[0000.291] failed to load NvTbootTbootCpu from (2:0)
[0000.296] re-load NvTbootTbootCpu from (4:0)
[0000.349] Csd NumOfBlocks=122142720
[0000.408] Using GPT Primary to query partitions
[0000.416] Loading Tboot-CPU binary
[0000.793] Verifying TBC in OdmNonSecureSBK mode
[0000.803] Bootloader load address is 0xa0000000, entry address is 0xa0000258
[0000.810] Bootloader downloaded successfully.
[0000.814] Downloaded Tboot-CPU binary to 0xa0000258
[0000.819] MAX77620_GPIO5 configured
[0000.823] CPU power rail is up
[0000.826] CPU clock enabled
[0000.829] Performing RAM repair
[0000.832] Updating A64 Warmreset Address to 0xa00002e9
[0000.837] Loading NvTbootBootloaderDTB
[0002.149] Verifying NvTbootBootloaderDTB in OdmNonSecureSBK mode
[0002.220] Bootloader DTB Load Address: 0x83000000
[0002.225] Loading NvTbootKernelDTB
[0003.536] Verifying NvTbootKernelDTB in OdmNonSecureSBK mode
[0003.607] Kernel DTB Load Address: 0x83100000
[0003.615] Loading cboot binary
[0005.299] Verifying EBT in OdmNonSecureSBK mode
[0005.341] Bootloader load address is 0x92c00000, entry address is 0x92c00258
[0005.348] Bootloader downloaded successfully.
[0005.540] Using BFS PT to query partitions 
[0005.544] Next binary entry address: 0x92c00258 
[0005.549] BoardId: 3448
[0005.553] Overriding pmu board id with proc board id
[0005.558] Display board id is not available 
[0007.057] Verifying SC7EntryFw in OdmNonSecureSBK mode
[0007.113] /bpmp deleted
[0007.115] SC7EntryFw header found loaded at 0xff700000
[0007.303] OVR2 PMIC
[0007.305] Bpmp FW successfully loaded
[0007.321] WB0 init successfully at 0xff780000
[0007.325] Set NvDecSticky Bits
[0007.329] GSC2 address ff53fffc value c0edbbcc
[0007.335] GSC MC Settings done
[0007.340] TOS Image length 53680
[0007.343]  Monitor size 53680
[0007.346]  OS size 0
[0007.507] Secure Os AES-CMAC Verification Success!
[0007.512] TOS image cipher info: plaintext
[0007.516] Loading and Validation of Secure OS Successful
[0007.532] SC7 Entry Firmware - 0xff700000, 0x4000
[0007.536] NvTbootPackSdramParams: start. 
[0007.541] NvTbootPackSdramParams: done. 
[0007.545] Tegraboot started after 53275 us
[0007.549] Basic modules init took 5643106 us
[0007.553] NvTbootQspiFlashIoctl: Opcode = 1 not supported
[0007.558] Sec Bootdevice Read Time = 12 ms, Read Size = 65 KB
[0007.564] Sec Bootdevice Write Time = 0 ms, Write Size = 0 KB
[0007.569] Storage Device Read Time = 6740 ms, Read Size = 2306 KB
[0007.575] Storage Device Write Time = 0 ms, Write Size = 0 KB
[0007.581] Next stage binary read took 1530455 us
[0007.585] Carveout took -1542135 us
[0007.588] CPU initialization took 2041873 us
[0007.593] Total time taken by TegraBoot 7673299 us

[0007.597] Starting CPU & Halting co-processor 

64NOTICE:  BL31: v1.3(release):b5eeb33f7
NOTICE:  BL31: Built : 12:09:37, Jul 26 2021
ERROR:   Error initializing runtime service trusty_fast
[0007.719] RamCode = 0
[0007.724] LPDDR4 Training: Read DT: Number of tables = 2
[0007.729] EMC Training (SRC-freq: 204000; DST-freq: 1600000)
[0007.742] EMC Training Successful
[0007.745] 408000 not found in DVFS table
[0007.751] RamCode = 0
[0007.755] DT Write: emc-table@204000 succeeded
[0007.760] DT Write: emc-table@1600000 succeeded
[0007.764] LPDDR4 Training: Write DT: Number of tables = 2
[0007.960] 
[0007.961] Debug Init done
[0007.963] Marked DTB cacheable
[0007.966] Bootloader DTB loaded at 0x83000000
[0007.971] Marked DTB cacheable
[0007.974] Kernel DTB loaded at 0x83100000
[0007.978] DeviceTree Init done
[0007.991] Pinmux applied successfully
[0007.995] gicd_base: 0x50041000
[0007.999] gicc_base: 0x50042000
[0008.002] Interrupts Init done
[0008.006] Using base:0x60005090 & irq:208 for tick-timer
[0008.011] Using base:0x60005098 for delay-timer
[0008.015] platform_init_timer: DONE
[0008.019] Timer(tick) Init done
[0008.023] osc freq = 38400 khz
[0008.026] 
[0008.028] Welcome to L4T Cboot
[0008.031] 
[0008.032] Cboot Version: 00.00.2018.01-t210-c952b4e6
[0008.037] calling constructors
[0008.040] initializing heap
[0008.042] initializing threads
[0008.045] initializing timers
[0008.048] creating bootstrap completion thread
[0008.052] top of bootstrap2()
[0008.055] CPU: ARM Cortex A57
[0008.058] CPU: MIDR: 0x411FD071, MPIDR: 0x80000000
[0008.063] initializing platform
[0008.070] Manufacturer: MF = 0xc2, ID MSB = 0x25
[0008.075] ID LSB = 0x36, ID-CFI len = 194 bytes
[0008.079] Macronix QSPI chip present
[0008.083] SPI device register
[0008.086] init boot device
[0008.088] allocating memory for boot device(SPI)
[0008.093] registering boot device
[0008.102] sdmmc node status = okay
[0008.105] sdcard instance = 0
[0008.108] sdmmc cd-inverted
[0008.111] sdcard gpio handle 0x5b
[0008.114] sdcard gpio pin 0xc9
[0008.117] sdcard gpio flags 0x0
[0008.120] vmmc-supply 0x9d
[0008.123] Instance: 0
[0008.125] Allocating memory for context
[0008.129] enabling clock
[0008.131] sd card init
[0008.133] Check card present and stable
[0008.137] Send command 0
[0008.154] Send command 3
[0008.158] Set RCA for the card
[0008.161] Query card specific data by command 9
[0008.167] Parse CSD data
[0008.170] Send command 7
[0008.180] Calling sd device register
[0008.183] Init sdcard
[0008.186] Allocating memory for boot device
[0008.190] Registering user device
[0008.203] Enable APE clock
[0008.205] Un-powergate APE partition
[0008.209] of_register: registering tegra_udc to of_hal
[0008.214] of_register: registering inv20628-driver to of_hal
[0008.220] of_register: registering ads1015-driver to of_hal
[0008.225] of_register: registering lp8557-bl-driver to of_hal
[0008.231] of_register: registering bq2419x_charger to of_hal
[0008.237] of_register: registering bq27441_fuel_gauge to of_hal
[0008.248] gpio framework initialized
[0008.251] of_register: registering tca9539_gpio to of_hal
[0008.257] of_register: registering tca9539_gpio to of_hal
[0008.262] of_register: registering i2c_bus_driver to of_hal
[0008.268] of_register: registering i2c_bus_driver to of_hal
[0008.273] of_register: registering i2c_bus_driver to of_hal
[0008.279] pmic framework initialized
[0008.282] of_register: registering max77620_pmic to of_hal
[0008.288] regulator framework initialized
[0008.292] of_register: registering tps65132_bl_driver to of_hal
[0008.298] initializing target
[0008.303] gpio_driver_register: register 'tegra_gpio_driver' driver
[0008.312] board ID = D78, board SKU = 0
[0008.315] Skipping Z3!
[0008.320] fixed regulator driver initialized
[0008.337] initializing OF layer
[0008.340] NCK carveout not present
[0008.343] Skipping dts_overrides
[0008.348] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.364] I2C Bus Init done
[0008.367] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.377] I2C Bus Init done
[0008.379] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.390] I2C Bus Init done
[0008.392] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.403] I2C Bus Init done
[0008.405] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.415] I2C Bus Init done
[0008.418] of_children_init: Ops found for compatible string maxim,max77620
[0008.428] max77620_init using irq 118
[0008.433] register 'maxim,max77620' pmic
[0008.437] gpio_driver_register: register 'max77620-gpio' driver
[0008.444] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.454] I2C Bus Init done
[0008.458] NCK carveout not present
[0008.467] Find /i2c@7000c000's alias i2c0
[0008.471] get eeprom at 1-a0, size 256, type 0
[0008.479] Find /i2c@7000c500's alias i2c2
[0008.483] get eeprom at 3-a0, size 256, type 0
[0008.488] get eeprom at 3-ae, size 256, type 0
[0008.492] pm_ids_update: Updating 1,a0, size 256, type 0
[0008.497] I2C slave not started
[0008.500] I2C write failed
[0008.503] Writing offset failed
[0008.506] eeprom_init: EEPROM read failed
[0008.510] pm_ids_update: eeprom init failed
[0008.514] pm_ids_update: Updating 3,a0, size 256, type 0
[0008.544] pm_ids_update: The pm board id is 3448-0000-200
[0008.551] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0008.559] pm_ids_update: pm id update successful
[0008.564] pm_ids_update: Updating 3,ae, size 256, type 0
[0008.594] pm_ids_update: The pm board id is 3449-0000-200
[0008.600] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0008.608] pm_ids_update: pm id update successful
[0008.638] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0008.644] shim_eeprom_update_mac:267: Failed to update 0 MAC address in DTB
[0008.652] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0008.658] shim_eeprom_update_mac:267: Failed to update 1 MAC address in DTB
[0008.666] updating /chosen/nvidia,ethernet-mac node 00:04:4b:e5:59:5d
[0008.673] Plugin Manager: Parse ODM data 0x00084000
[0008.686] shim_cmdline_install: /chosen/bootargs: earlycon=uart8250,mmio32,0x70006000 
[0008.700] Find /i2c@7000c000's alias i2c0
[0008.704] get eeprom at 1-a0, size 256, type 0
[0008.713] Find /i2c@7000c500's alias i2c2
[0008.716] get eeprom at 3-a0, size 256, type 0
[0008.721] get eeprom at 3-ae, size 256, type 0
[0008.725] pm_ids_update: Updating 1,a0, size 256, type 0
[0008.731] I2C slave not started
[0008.734] I2C write failed
[0008.736] Writing offset failed
[0008.739] eeprom_init: EEPROM read failed
[0008.743] pm_ids_update: eeprom init failed
[0008.747] pm_ids_update: Updating 3,a0, size 256, type 0
[0008.777] pm_ids_update: The pm board id is 3448-0000-200
[0008.784] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0008.790] pm_ids_update: pm id update successful
[0008.795] pm_ids_update: Updating 3,ae, size 256, type 0
[0008.825] pm_ids_update: The pm board id is 3449-0000-200
[0008.831] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0008.838] pm_ids_update: pm id update successful
[0008.869] Add serial number:1422019083619 as DT property
[0008.876] Applying platform configs
[0008.883] platform-init is not present. Skipping
[0008.887] calling apps_init()
[0008.912] Found 14 GPT partitions in "sd0"
[0008.916] Proceeding to Cold Boot
[0008.920] starting app android_boot_app
[0008.923] Device state: unlocked
[0008.926] display console init
[0008.935] could not find regulator
[0008.958] hdmi cable not connected
[0008.961] is_hdmi_needed: HDMI not connected, returning false
[0008.967] DT entry for leds-pwm not found
h[0008.974] dmi is not connected
[0008.977] sor0 is not supported
[0008.980] display_console_init: no valid display out_type
[0008.988] subnode volume_up is not found !
[0008.992] subnode back is not found !
[0008.996] subnode volume_down is not found !
[0009.000] subnode menu is not found !
[0009.003] Gpio keyboard init success
[0009.054] found decompressor handler: lz4-legacy
[0009.068] decompressing blob (type 1)...
[0009.134] display_resolution: No display init
[0009.139] Failed to retrieve display resolution
[0009.143] Could not load/initialize BMP blob...ignoring
[0009.194] decompressor handler not found
[0009.198] load_firmware_blob: Firmware blob loaded, entries=2
[0009.204] XUSB blob version 0 size 126464 @ 0x92cb328c
[0009.210] -------> se_aes_verify_sbk_clear: 747
[0009.214] se_aes_verify_sbk_clear: Error
[0009.218] SE operation failed
[0009.221] bl_battery_charging: connected to external power supply
[0009.230] display_console_ioctl: No display init
[0009.234] switch_backlight failed
[0009.240] device_query_partition_size: failed to open partition sd0:MSC !
[0009.247] MSC Partition not found
[0009.253] device_query_partition_size: failed to open partition sd0:USP !
[0009.260] USP partition read failed!
[0009.264] blob_init: blob-partition USP header read failed
[0009.269] android_boot Unable to update recovery partition
[0009.275] kfs_getpartname: name = LNX
[0009.278] Loading kernel from LNX
[0009.421] load kernel from storage
[0009.432] decompressor handler not found
[0009.516] Successfully loaded kernel and ramdisk images
[0009.521] board ID = D78, board SKU = 0
[0009.526] sdmmc node status = okay
[0009.529] sdcard instance = 0
[0009.532] sdmmc cd-inverted
[0009.535] sdcard gpio handle 0x5b
[0009.538] sdcard gpio pin 0xc9
[0009.541] sdcard gpio flags 0x0
[0009.544] vmmc-supply 0x9d
[0009.547] cd_gpio_pin = 201
[0009.549] pin_state = 0
[0009.552] Found sdcard
[0009.554] SD-card IS present ...
[0009.557] load_and_boot_kernel: SD card detected OK
[0009.563] display_resolution: No display init
[0009.567] Failed to retrieve display resolution
[0009.571] bmp blob is not loaded and initialized
[0009.576] Failed to display boot-logo
[0009.580] NCK carveout not present
[0009.583] Skipping dts_overrides
[0009.586] NCK carveout not present
[0009.595] Find /i2c@7000c000's alias i2c0
[0009.599] get eeprom at 1-a0, size 256, type 0
[0009.608] Find /i2c@7000c500's alias i2c2
[0009.612] get eeprom at 3-a0, size 256, type 0
[0009.616] get eeprom at 3-ae, size 256, type 0
[0009.621] pm_ids_update: Updating 1,a0, size 256, type 0
[0009.626] I2C slave not started
[0009.629] I2C write failed
[0009.632] Writing offset failed
[0009.635] eeprom_init: EEPROM read failed
[0009.639] pm_ids_update: eeprom init failed
[0009.643] pm_ids_update: Updating 3,a0, size 256, type 0
[0009.673] pm_ids_update: The pm board id is 3448-0000-200
[0009.680] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0009.688] pm_ids_update: pm id update successful
[0009.693] pm_ids_update: Updating 3,ae, size 256, type 0
[0009.723] pm_ids_update: The pm board id is 3449-0000-200
[0009.729] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0009.737] pm_ids_update: pm id update successful
[0009.767] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0009.773] shim_eeprom_update_mac:267: Failed to update 0 MAC address in DTB
[0009.781] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0009.787] shim_eeprom_update_mac:267: Failed to update 1 MAC address in DTB
[0009.795] updating /chosen/nvidia,ethernet-mac node 00:04:4b:e5:59:5d
[0009.801] Plugin Manager: Parse ODM data 0x00084000
[0009.814] shim_cmdline_install: /chosen/bootargs: earlycon=uart8250,mmio32,0x70006000 
[0009.823] Add serial number:1422019083619 as DT property
[0009.831] "bpmp" doesn't exist, creating 
[0009.837] Updated bpmp info to DTB
[0009.842] Updated initrd info to DTB
[0009.845] "proc-board" doesn't exist, creating 
[0009.851] Updated board info to DTB
[0009.855] "pmu-board" doesn't exist, creating 
[0009.861] Updated board info to DTB
[0009.864] "display-board" doesn't exist, creating 
[0009.870] Updated board info to DTB
[0009.873] "reset" doesn't exist, creating 
[0009.878] Updated reset info to DTB
[0009.881] display_console_ioctl: No display init
[0009.886] display_console_ioctl: No display init
[0009.890] display_console_ioctl: No display init
[0009.895] Cmdline: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1075 core_edp_ma=4000 gpt 
[0009.929] DTB cmdline: earlycon=uart8250,mmio32,0x70006000 
[0009.935] boot image cmdline: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 
[0009.948] Updated bootarg info to DTB
[0009.952] Adding uuid 00000001644476401800000006018280 to DT
[0009.958] Adding eks info 0 to DT
[0009.963] WARNING: Failed to pass NS DRAM ranges to TOS, err: -7
[0009.969] Updated memory info to DTB
[0009.975] Updated system-lp0-disable info to DTB
[0009.983] set vdd_core voltage to 1075 mv
[0009.986] setting 'vdd-core' regulator to 1075000 micro volts
[0009.992] Found secure-pmc; disable BPMP


U-Boot 2020.04-g46e4604c78 (Jul 26 2021 - 12:09:42 -0700)

SoC: tegra210
Model: NVIDIA Jetson Nano Developer Kit
Board: NVIDIA P3450-0000
DRAM:  4 GiB
MMC:   sdhci@700b0000: 1, sdhci@700b0600: 0
Loading Environment from SPI Flash... SF: Detected mx25u3235f with page size 256 Bytes, erase size 4 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
845 bytes read in 28 ms (29.3 KiB/s)
1:primary kernel
Retrieving file: /boot/initrd
7160133 bytes read in 334 ms (20.4 MiB/s)
Retrieving file: /boot/Image
34484232 bytes read in 1514 ms (21.7 MiB/s)
append: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1075 core_edp_ma=4000 gpt  earlycon=uart8250,mmio32,0x70006000  root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 
## Flattened Device Tree blob at 83100000
   Booting using the fdt blob at 0x83100000
ERROR: reserving fdt memory region failed (addr=0 size=0)
ERROR: reserving fdt memory region failed (addr=0 size=0)
   Using Device Tree in place at 0000000083100000, end 000000008317ce2a
copying carveout for /host1x@50000000/dc@54200000...
copying carveout for /host1x@50000000/dc@54240000...

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.253-tegra (buildbrain@mobile-u64-5496-d5000) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Mon Jul 26 12:13:06 PDT 2021
[    0.000000] Boot CPU: AArch64 Processor [411fd071]
[    0.000000] OF: fdt:memory scan node memory@80000000, reg size 32,
[    0.000000] OF: fdt: - 80000000 ,  7ee00000
[    0.000000] OF: fdt: - 100000000 ,  7f200000
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000070006000 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    1.067771] tegradc tegradc.1: dpd enable lookup fail:-19
[    1.573559] Host read timeout at address 545c00c4
 P@@(h !@H"

 

 

microUSB 2A 이상 공급시 정상부팅

[0000.126] [TegraBoot] (version 00.00.2018.01-l4t-33e7fa82)
[0000.131] Processing in cold boot mode Bootloader 2
[0000.135] A02 Bootrom Patch rev = 1023
[0000.139] Power-up reason: pmc por
[0000.142] No Battery Present
[0000.145] pmic max77620 reset reason
[0000.148] pmic max77620 NVERC : 0x40
[0000.152] RamCode = 0
[0000.154] Platform has DDR4 type RAM
[0000.157] max77620 disabling SD1 Remote Sense
[0000.161] Setting DDR voltage to 1125mv
[0000.165] Serial Number of Pmic Max77663: 0x291ae2
[0000.173] Entering ramdump check
[0000.176] Get RamDumpCarveOut = 0x0
[0000.179] RamDumpCarveOut=0x0,  RamDumperFlag=0xe59ff3f8
[0000.184] Last reboot was clean, booting normally!
[0000.189] Sdram initialization is successful 
[0000.193] SecureOs Carveout Base=0x00000000ff800000 Size=0x00800000
[0000.199] Lp0 Carveout Base=0x00000000ff780000 Size=0x00001000
[0000.205] BpmpFw Carveout Base=0x00000000ff700000 Size=0x00080000
[0000.211] GSC1 Carveout Base=0x00000000ff600000 Size=0x00100000
[0000.217] GSC2 Carveout Base=0x00000000ff500000 Size=0x00100000
[0000.223] GSC4 Carveout Base=0x00000000ff400000 Size=0x00100000
[0000.228] GSC5 Carveout Base=0x00000000ff300000 Size=0x00100000
[0000.234] GSC3 Carveout Base=0x000000017f300000 Size=0x00d00000
[0000.250] RamDump Carveout Base=0x00000000ff280000 Size=0x00080000
[0000.256] Platform-DebugCarveout: 0
[0000.260] Nck Carveout Base=0x00000000ff080000 Size=0x00200000
[0000.266] Non secure mode, and RB not enabled.
[0000.272] Invalid GPT Partition
[0000.287] Using BFS PT to query partitions 
[0000.291] failed to load NvTbootTbootCpu from (2:0)
[0000.296] re-load NvTbootTbootCpu from (4:0)
[0000.349] Csd NumOfBlocks=122142720
[0000.408] Using GPT Primary to query partitions
[0000.416] Loading Tboot-CPU binary
[0000.793] Verifying TBC in OdmNonSecureSBK mode
[0000.803] Bootloader load address is 0xa0000000, entry address is 0xa0000258
[0000.810] Bootloader downloaded successfully.
[0000.814] Downloaded Tboot-CPU binary to 0xa0000258
[0000.819] MAX77620_GPIO5 configured
[0000.823] CPU power rail is up
[0000.826] CPU clock enabled
[0000.829] Performing RAM repair
[0000.832] Updating A64 Warmreset Address to 0xa00002e9
[0000.837] Loading NvTbootBootloaderDTB
[0002.149] Verifying NvTbootBootloaderDTB in OdmNonSecureSBK mode
[0002.220] Bootloader DTB Load Address: 0x83000000
[0002.225] Loading NvTbootKernelDTB
[0003.536] Verifying NvTbootKernelDTB in OdmNonSecureSBK mode
[0003.607] Kernel DTB Load Address: 0x83100000
[0003.615] Loading cboot binary
[0005.299] Verifying EBT in OdmNonSecureSBK mode
[0005.341] Bootloader load address is 0x92c00000, entry address is 0x92c00258
[0005.348] Bootloader downloaded successfully.
[0005.540] Using BFS PT to query partitions 
[0005.544] Next binary entry address: 0x92c00258 
[0005.549] BoardId: 3448
[0005.553] Overriding pmu board id with proc board id
[0005.558] Display board id is not available 
[0007.057] Verifying SC7EntryFw in OdmNonSecureSBK mode
[0007.113] /bpmp deleted
[0007.115] SC7EntryFw header found loaded at 0xff700000
[0007.303] OVR2 PMIC
[0007.305] Bpmp FW successfully loaded
[0007.321] WB0 init successfully at 0xff780000
[0007.325] Set NvDecSticky Bits
[0007.329] GSC2 address ff53fffc value c0edbbcc
[0007.335] GSC MC Settings done
[0007.340] TOS Image length 53680
[0007.343]  Monitor size 53680
[0007.346]  OS size 0
[0007.507] Secure Os AES-CMAC Verification Success!
[0007.512] TOS image cipher info: plaintext
[0007.516] Loading and Validation of Secure OS Successful
[0007.532] SC7 Entry Firmware - 0xff700000, 0x4000
[0007.536] NvTbootPackSdramParams: start. 
[0007.541] NvTbootPackSdramParams: done. 
[0007.545] Tegraboot started after 53275 us
[0007.549] Basic modules init took 5643086 us
[0007.553] NvTbootQspiFlashIoctl: Opcode = 1 not supported
[0007.558] Sec Bootdevice Read Time = 12 ms, Read Size = 65 KB
[0007.564] Sec Bootdevice Write Time = 0 ms, Write Size = 0 KB
[0007.569] Storage Device Read Time = 6740 ms, Read Size = 2306 KB
[0007.575] Storage Device Write Time = 0 ms, Write Size = 0 KB
[0007.581] Next stage binary read took 1530456 us
[0007.585] Carveout took -1542135 us
[0007.588] CPU initialization took 2041876 us
[0007.593] Total time taken by TegraBoot 7673283 us

[0007.597] Starting CPU & Halting co-processor 

64NOTICE:  BL31: v1.3(release):b5eeb33f7
NOTICE:  BL31: Built : 12:09:37, Jul 26 2021
ERROR:   Error initializing runtime service trusty_fast
[0007.719] RamCode = 0
[0007.724] LPDDR4 Training: Read DT: Number of tables = 2
[0007.729] EMC Training (SRC-freq: 204000; DST-freq: 1600000)
[0007.742] EMC Training Successful
[0007.745] 408000 not found in DVFS table
[0007.751] RamCode = 0
[0007.755] DT Write: emc-table@204000 succeeded
[0007.760] DT Write: emc-table@1600000 succeeded
[0007.764] LPDDR4 Training: Write DT: Number of tables = 2
[0007.960] 
[0007.961] Debug Init done
[0007.963] Marked DTB cacheable
[0007.966] Bootloader DTB loaded at 0x83000000
[0007.971] Marked DTB cacheable
[0007.974] Kernel DTB loaded at 0x83100000
[0007.978] DeviceTree Init done
[0007.991] Pinmux applied successfully
[0007.995] gicd_base: 0x50041000
[0007.999] gicc_base: 0x50042000
[0008.002] Interrupts Init done
[0008.006] Using base:0x60005090 & irq:208 for tick-timer
[0008.011] Using base:0x60005098 for delay-timer
[0008.015] platform_init_timer: DONE
[0008.019] Timer(tick) Init done
[0008.023] osc freq = 38400 khz
[0008.026] 
[0008.028] Welcome to L4T Cboot
[0008.031] 
[0008.032] Cboot Version: 00.00.2018.01-t210-c952b4e6
[0008.037] calling constructors
[0008.040] initializing heap
[0008.042] initializing threads
[0008.045] initializing timers
[0008.048] creating bootstrap completion thread
[0008.052] top of bootstrap2()
[0008.055] CPU: ARM Cortex A57
[0008.058] CPU: MIDR: 0x411FD071, MPIDR: 0x80000000
[0008.063] initializing platform
[0008.070] Manufacturer: MF = 0xc2, ID MSB = 0x25
[0008.075] ID LSB = 0x36, ID-CFI len = 194 bytes
[0008.079] Macronix QSPI chip present
[0008.083] SPI device register
[0008.086] init boot device
[0008.088] allocating memory for boot device(SPI)
[0008.093] registering boot device
[0008.102] sdmmc node status = okay
[0008.105] sdcard instance = 0
[0008.108] sdmmc cd-inverted
[0008.111] sdcard gpio handle 0x5b
[0008.114] sdcard gpio pin 0xc9
[0008.117] sdcard gpio flags 0x0
[0008.120] vmmc-supply 0x9d
[0008.123] Instance: 0
[0008.125] Allocating memory for context
[0008.129] enabling clock
[0008.131] sd card init
[0008.133] Check card present and stable
[0008.137] Send command 0
[0008.154] Send command 3
[0008.158] Set RCA for the card
[0008.161] Query card specific data by command 9
[0008.167] Parse CSD data
[0008.170] Send command 7
[0008.180] Calling sd device register
[0008.183] Init sdcard
[0008.186] Allocating memory for boot device
[0008.190] Registering user device
[0008.203] Enable APE clock
[0008.205] Un-powergate APE partition
[0008.209] of_register: registering tegra_udc to of_hal
[0008.214] of_register: registering inv20628-driver to of_hal
[0008.220] of_register: registering ads1015-driver to of_hal
[0008.225] of_register: registering lp8557-bl-driver to of_hal
[0008.231] of_register: registering bq2419x_charger to of_hal
[0008.237] of_register: registering bq27441_fuel_gauge to of_hal
[0008.248] gpio framework initialized
[0008.251] of_register: registering tca9539_gpio to of_hal
[0008.257] of_register: registering tca9539_gpio to of_hal
[0008.262] of_register: registering i2c_bus_driver to of_hal
[0008.268] of_register: registering i2c_bus_driver to of_hal
[0008.273] of_register: registering i2c_bus_driver to of_hal
[0008.279] pmic framework initialized
[0008.282] of_register: registering max77620_pmic to of_hal
[0008.288] regulator framework initialized
[0008.292] of_register: registering tps65132_bl_driver to of_hal
[0008.298] initializing target
[0008.303] gpio_driver_register: register 'tegra_gpio_driver' driver
[0008.311] board ID = D78, board SKU = 0
[0008.315] Skipping Z3!
[0008.320] fixed regulator driver initialized
[0008.337] initializing OF layer
[0008.340] NCK carveout not present
[0008.344] Skipping dts_overrides
[0008.348] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.364] I2C Bus Init done
[0008.367] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.377] I2C Bus Init done
[0008.379] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.390] I2C Bus Init done
[0008.392] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.403] I2C Bus Init done
[0008.405] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.415] I2C Bus Init done
[0008.418] of_children_init: Ops found for compatible string maxim,max77620
[0008.428] max77620_init using irq 118
[0008.433] register 'maxim,max77620' pmic
[0008.437] gpio_driver_register: register 'max77620-gpio' driver
[0008.444] of_children_init: Ops found for compatible string nvidia,tegra210-i2c
[0008.454] I2C Bus Init done
[0008.458] NCK carveout not present
[0008.467] Find /i2c@7000c000's alias i2c0
[0008.471] get eeprom at 1-a0, size 256, type 0
[0008.479] Find /i2c@7000c500's alias i2c2
[0008.483] get eeprom at 3-a0, size 256, type 0
[0008.488] get eeprom at 3-ae, size 256, type 0
[0008.492] pm_ids_update: Updating 1,a0, size 256, type 0
[0008.497] I2C slave not started
[0008.500] I2C write failed
[0008.503] Writing offset failed
[0008.506] eeprom_init: EEPROM read failed
[0008.510] pm_ids_update: eeprom init failed
[0008.514] pm_ids_update: Updating 3,a0, size 256, type 0
[0008.544] pm_ids_update: The pm board id is 3448-0000-200
[0008.551] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0008.559] pm_ids_update: pm id update successful
[0008.564] pm_ids_update: Updating 3,ae, size 256, type 0
[0008.594] pm_ids_update: The pm board id is 3449-0000-200
[0008.600] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0008.608] pm_ids_update: pm id update successful
[0008.638] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0008.644] shim_eeprom_update_mac:267: Failed to update 0 MAC address in DTB
[0008.652] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0008.658] shim_eeprom_update_mac:267: Failed to update 1 MAC address in DTB
[0008.666] updating /chosen/nvidia,ethernet-mac node 00:04:4b:e5:59:5d
[0008.673] Plugin Manager: Parse ODM data 0x00084000
[0008.686] shim_cmdline_install: /chosen/bootargs: earlycon=uart8250,mmio32,0x70006000 
[0008.700] Find /i2c@7000c000's alias i2c0
[0008.704] get eeprom at 1-a0, size 256, type 0
[0008.712] Find /i2c@7000c500's alias i2c2
[0008.716] get eeprom at 3-a0, size 256, type 0
[0008.721] get eeprom at 3-ae, size 256, type 0
[0008.725] pm_ids_update: Updating 1,a0, size 256, type 0
[0008.730] I2C slave not started
[0008.733] I2C write failed
[0008.736] Writing offset failed
[0008.739] eeprom_init: EEPROM read failed
[0008.743] pm_ids_update: eeprom init failed
[0008.747] pm_ids_update: Updating 3,a0, size 256, type 0
[0008.777] pm_ids_update: The pm board id is 3448-0000-200
[0008.783] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0008.790] pm_ids_update: pm id update successful
[0008.795] pm_ids_update: Updating 3,ae, size 256, type 0
[0008.825] pm_ids_update: The pm board id is 3449-0000-200
[0008.831] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0008.838] pm_ids_update: pm id update successful
[0008.869] Add serial number:1422019083619 as DT property
[0008.876] Applying platform configs
[0008.883] platform-init is not present. Skipping
[0008.887] calling apps_init()
[0008.912] Found 14 GPT partitions in "sd0"
[0008.916] Proceeding to Cold Boot
[0008.919] starting app android_boot_app
[0008.923] Device state: unlocked
[0008.926] display console init
[0008.935] could not find regulator
[0008.958] hdmi cable not connected
[0008.961] is_hdmi_needed: HDMI not connected, returning false
[0008.967] hDT entry for leds-pwm not found
d[0008.974] mi is not connected
[0008.977] sor0 is not supported
[0008.980] display_console_init: no valid display out_type
[0008.988] subnode volume_up is not found !
[0008.992] subnode back is not found !
[0008.996] subnode volume_down is not found !
[0009.000] subnode menu is not found !
[0009.003] Gpio keyboard init success
[0009.054] found decompressor handler: lz4-legacy
[0009.068] decompressing blob (type 1)...
[0009.134] display_resolution: No display init
[0009.138] Failed to retrieve display resolution
[0009.143] Could not load/initialize BMP blob...ignoring
[0009.194] decompressor handler not found
[0009.198] load_firmware_blob: Firmware blob loaded, entries=2
[0009.204] XUSB blob version 0 size 126464 @ 0x92cb328c
[0009.210] -------> se_aes_verify_sbk_clear: 747
[0009.214] se_aes_verify_sbk_clear: Error
[0009.218] SE operation failed
[0009.221] bl_battery_charging: connected to external power supply
[0009.230] display_console_ioctl: No display init
[0009.234] switch_backlight failed
[0009.240] device_query_partition_size: failed to open partition sd0:MSC !
[0009.247] MSC Partition not found
[0009.253] device_query_partition_size: failed to open partition sd0:USP !
[0009.260] USP partition read failed!
[0009.263] blob_init: blob-partition USP header read failed
[0009.269] android_boot Unable to update recovery partition
[0009.274] kfs_getpartname: name = LNX
[0009.278] Loading kernel from LNX
[0009.421] load kernel from storage
[0009.432] decompressor handler not found
[0009.516] Successfully loaded kernel and ramdisk images
[0009.521] board ID = D78, board SKU = 0
[0009.526] sdmmc node status = okay
[0009.529] sdcard instance = 0
[0009.532] sdmmc cd-inverted
[0009.535] sdcard gpio handle 0x5b
[0009.538] sdcard gpio pin 0xc9
[0009.541] sdcard gpio flags 0x0
[0009.544] vmmc-supply 0x9d
[0009.547] cd_gpio_pin = 201
[0009.549] pin_state = 0
[0009.552] Found sdcard
[0009.554] SD-card IS present ...
[0009.557] load_and_boot_kernel: SD card detected OK
[0009.563] display_resolution: No display init
[0009.567] Failed to retrieve display resolution
[0009.571] bmp blob is not loaded and initialized
[0009.576] Failed to display boot-logo
[0009.580] NCK carveout not present
[0009.583] Skipping dts_overrides
[0009.586] NCK carveout not present
[0009.596] Find /i2c@7000c000's alias i2c0
[0009.599] get eeprom at 1-a0, size 256, type 0
[0009.608] Find /i2c@7000c500's alias i2c2
[0009.612] get eeprom at 3-a0, size 256, type 0
[0009.616] get eeprom at 3-ae, size 256, type 0
[0009.621] pm_ids_update: Updating 1,a0, size 256, type 0
[0009.626] I2C slave not started
[0009.629] I2C write failed
[0009.632] Writing offset failed
[0009.635] eeprom_init: EEPROM read failed
[0009.639] pm_ids_update: eeprom init failed
[0009.643] pm_ids_update: Updating 3,a0, size 256, type 0
[0009.673] pm_ids_update: The pm board id is 3448-0000-200
[0009.680] Adding plugin-manager/ids/3448-0000-200=/i2c@7000c500:module@0x50
[0009.688] pm_ids_update: pm id update successful
[0009.693] pm_ids_update: Updating 3,ae, size 256, type 0
[0009.723] pm_ids_update: The pm board id is 3449-0000-200
[0009.729] Adding plugin-manager/ids/3449-0000-200=/i2c@7000c500:module@0x57
[0009.737] pm_ids_update: pm id update successful
[0009.767] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0009.773] shim_eeprom_update_mac:267: Failed to update 0 MAC address in DTB
[0009.781] eeprom_get_mac: EEPROM invalid MAC address (all 0xff)
[0009.787] shim_eeprom_update_mac:267: Failed to update 1 MAC address in DTB
[0009.795] updating /chosen/nvidia,ethernet-mac node 00:04:4b:e5:59:5d
[0009.801] Plugin Manager: Parse ODM data 0x00084000
[0009.814] shim_cmdline_install: /chosen/bootargs: earlycon=uart8250,mmio32,0x70006000 
[0009.823] Add serial number:1422019083619 as DT property
[0009.831] "bpmp" doesn't exist, creating 
[0009.837] Updated bpmp info to DTB
[0009.842] Updated initrd info to DTB
[0009.845] "proc-board" doesn't exist, creating 
[0009.851] Updated board info to DTB
[0009.855] "pmu-board" doesn't exist, creating 
[0009.861] Updated board info to DTB
[0009.864] "display-board" doesn't exist, creating 
[0009.870] Updated board info to DTB
[0009.873] "reset" doesn't exist, creating 
[0009.878] Updated reset info to DTB
[0009.881] display_console_ioctl: No display init
[0009.886] display_console_ioctl: No display init
[0009.890] display_console_ioctl: No display init
[0009.895] Cmdline: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1075 core_edp_ma=4000 gpt 
[0009.929] DTB cmdline: earlycon=uart8250,mmio32,0x70006000 
[0009.935] boot image cmdline: root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 
[0009.948] Updated bootarg info to DTB
[0009.952] Adding uuid 00000001644476401800000006018280 to DT
[0009.958] Adding eks info 0 to DT
[0009.963] WARNING: Failed to pass NS DRAM ranges to TOS, err: -7
[0009.969] Updated memory info to DTB
[0009.975] Updated system-lp0-disable info to DTB
[0009.983] set vdd_core voltage to 1075 mv
[0009.987] setting 'vdd-core' regulator to 1075000 micro volts
[0009.992] Found secure-pmc; disable BPMP


U-Boot 2020.04-g46e4604c78 (Jul 26 2021 - 12:09:42 -0700)

SoC: tegra210
Model: NVIDIA Jetson Nano Developer Kit
Board: NVIDIA P3450-0000
DRAM:  4 GiB
MMC:   sdhci@700b0000: 1, sdhci@700b0600: 0
Loading Environment from SPI Flash... SF: Detected mx25u3235f with page size 256 Bytes, erase size 4 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  2  1  0 
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
845 bytes read in 28 ms (29.3 KiB/s)
1:primary kernel
Retrieving file: /boot/initrd
7160133 bytes read in 334 ms (20.4 MiB/s)
Retrieving file: /boot/Image
34484232 bytes read in 1513 ms (21.7 MiB/s)
append: tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1075 core_edp_ma=4000 gpt  earlycon=uart8250,mmio32,0x70006000  root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 
## Flattened Device Tree blob at 83100000
   Booting using the fdt blob at 0x83100000
ERROR: reserving fdt memory region failed (addr=0 size=0)
ERROR: reserving fdt memory region failed (addr=0 size=0)
   Using Device Tree in place at 0000000083100000, end 000000008317ce2a
copying carveout for /host1x@50000000/dc@54200000...
copying carveout for /host1x@50000000/dc@54240000...

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.253-tegra (buildbrain@mobile-u64-5496-d5000) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #1 SMP PREEMPT Mon Jul 26 12:13:06 PDT 2021
[    0.000000] Boot CPU: AArch64 Processor [411fd071]
[    0.000000] OF: fdt:memory scan node memory@80000000, reg size 32,
[    0.000000] OF: fdt: - 80000000 ,  7ee00000
[    0.000000] OF: fdt: - 100000000 ,  7f200000
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000070006000 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    1.080366] tegradc tegradc.1: dpd enable lookup fail:-19
[    1.586070] Host read timeout at address 545c00c4
[    1.784584] imx219 7-0010: imx219_board_setup: error during i2c read probe (-121)
[    1.792265] imx219 7-0010: board setup failed
[    1.820680] imx219 8-0010: imx219_board_setup: error during i2c read probe (-121)
[    1.828261] imx219 8-0010: board setup failed
[    2.750802] cgroup: cgroup2: unknown option "nsdelegate"
[    3.746759] using random self ethernet address
[    3.751247] using random host ethernet address
[    4.192542] random: crng init done
[    4.195947] random: 7 urandom warning(s) missed due to ratelimiting
[    4.211160] using random self ethernet address
[    4.215693] using random host ethernet address
[   11.856321] Please complete system configuration setup on the serial port provided by Jetson's USB device mode connection. e.g. /dev/ttyACMx where x can 0, 1, 2 etc.

'embeded > jetson' 카테고리의 다른 글

flud nvidia cuda  (0) 2022.03.28
jetson nano deepstream  (0) 2022.02.10
nvidia jetson nano 2gb / csi  (0) 2022.01.21
jetson nano gpu 사용 상태 확인  (0) 2022.01.20
jetson nano 2g dev. kit 셋업  (0) 2022.01.20
Posted by 구차니
Linux2022. 2. 8. 17:59

ls 해서 용량별로 보고 싶어 검색

 

흐음.. 아름답지 않아!! (길어서 외우기 싫다는 의미)

$ ls --sort=size -l

 

이런 산뜻한 걸 먼저 알려줬어야지!!

-S Sort by file size, largest first

[링크 : https://www.cyberciti.biz/faq/linux-ls-command-sort-by-file-size/]

 

$ sort -k 3,3 myFile

[링크 : https://unix.stackexchange.com/questions/104525/sort-based-on-the-third-column]

 

-k, --key=POS1[,POS2]
       start a key at POS1 (origin 1), end it at POS2 (default end of line)

[링크 : https://linux.die.net/man/1/sort]

 

우분투 내 도움말에는 key 라고 나오네. 설명이 와닫지 않아!

       -k, --key=KEYDEF
              sort via a key; KEYDEF gives location and type

'Linux' 카테고리의 다른 글

bash set -e set -x  (0) 2022.06.22
linux cache clear  (0) 2022.02.11
elementary os  (0) 2022.01.28
linux 터미널 pause, resume  (0) 2022.01.11
systemctl TTYPath  (0) 2022.01.06
Posted by 구차니
Programming/openGL2022. 2. 8. 12:47

mat 변수가 나오는걸 봐서는 구버전이라.. 요즘꺼에 돌려보려면 조금 고생할 듯.

openGL은 텍스쳐까진 보질 못해서 코드를 이해 못하겠네..

 

[링크 : https://webnautes.tistory.com/1098]

'Programming > openGL' 카테고리의 다른 글

opengl glortho gluperspective  (0) 2023.08.28
glReadPixels() 와 glUseProgram()  (0) 2022.11.17
glMatrixMode()  (0) 2020.04.14
opengl superbible 3rd 리눅스 빌드 패키지  (0) 2020.04.08
opengl super bible 3rd - 4,5 chapter  (0) 2020.04.06
Posted by 구차니
Posted by 구차니

23bit 비트의 정수고 8bit의 십진수 정확도 라고 하니 먼가 감이 안오는데

 

0 ~ 8388608(2^23) 범위를

0  ~ 32768 로 사용한다는 것. (그럼 이론상 FHD 17*17개 UHD 8*8 까지 가능하려나)

 

정확도는 어떤 의미로 쓰려나.. 나중에 확대했을때를 대비해서 소수점 포인트를 주는건가?

 

/**
 * Fixed-point number
 *
 * A `wl_fixed_t` is a 24.8 signed fixed-point number with a sign bit, 23 bits
 * of integer precision and 8 bits of decimal precision. Consider `wl_fixed_t`
 * as an opaque struct with methods that facilitate conversion to and from
 * `double` and `int` types.
 */
typedef int32_t wl_fixed_t;

[링크 : https://code.woboq.org/qt5/include/wayland-util.h.html]

 

typedef int32_t wl_fixed_t;

static inline int wl_fixed_to_int(wl_fixed_t f)
{
    return f / 256;
}

static inline wl_fixed_t wl_fixed_from_int(int i)
{
    return i * 256;
}

[링크 : https://github.com/nobled/wayland/blob/master/src/wayland-util.h]

'프로그램 사용 > wayland' 카테고리의 다른 글

wayvnc 실행 실패  (0) 2022.02.17
wayland-scanner  (0) 2022.02.16
wayvnc  (0) 2022.01.24
weston client 메모리 누수  (0) 2022.01.17
wayland buffer  (0) 2022.01.13
Posted by 구차니
프로그램 사용/gcc2022. 2. 7. 16:07

전부 정적으로 묶고 일부만 동적으로 묶는거나

동적으로 묶을건 냅두고 필요한(나머지) 것을 정적으로 묶는거나 그게 그건가?

 

-static-libgcc 한다고 해서 glibc 버전 안 맞다고 발생하는 에러를 해결할 순 없다

[링크 : https://stackoverflow.com/questions/26304531]

 

[링크 : https://kldp.org/node/136157]

  [링크 : https://enst.tistory.com/entry/liblibcso6-version-GLIBC27-not-found]

 

 

[링크 : https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html]

  [링크 : https://www.codeproject.com/Questions/1241890/How-to-link-to-libc-statically]

 

-lm 버전 문제 있으면 걍 해당 라이브러리를 static link 해버리면 되니까!

$ g++ -std=c++11 -o classify classify.cc -I/home/pi/work/coral/libedgetpu/tflite/public -I/home/pi/work/coral/tensorflow -I/home/pi/work/coral/tensorflow/tensorflow/lite/tools/make/downloads/flatbuffers/include -L/home/pi/work/coral/tensorflow/tensorflow/lite/tools/make/gen/rpi_armv7l/lib -L/home/pi/work/coral/pycoral/libedgetpu_bin/throttled/armv7a -ltensorflow-lite -static-libgcc -l:libedgetpu.so.1.0 -lpthread -ldl /usr/lib/arm-linux-gnueabihf/libm.a

[링크 : http://www.iamroot.org/xe/index.php?mid=Programming&document_srl=13406]

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc vectorization 실패  (0) 2022.06.02
gcc / 문자열 선언  (0) 2022.03.17
구조체 타입과 변수명은 구분된다?  (0) 2021.11.18
gcc unsigned to signed upcast 테스트  (0) 2021.07.08
gcc vectorized loop  (0) 2021.06.30
Posted by 구차니

해당 cpp 예제는 label_image를 수정한 것 같고, 이미지는 bmp 24bit만 받아들일 수 있을 것으로 생각된다.

그리고 이미지는 알아서 resize 해주지 않아 244*244로 리사이즈 한 이미지를 넣어주어야 한다.

 

netron 웹 사이트에서  모델을 불러들여서 확인해보니 input tensor 사이즈가 [1,244,244,3] 이다.

 

아.. 놔.. threshold는 0~1 사이 실수로 입력해야 한다. (도움말 좀만 더 친절히 해줘 ㅠㅠ)

(대충 봐서 thread로 보고 4를 넣었으니 결과가 나올리가..)

./classify <model_file> <label_file> <image_file> <threshold>

 

그리고 edgetpu용으로 돌리나 일반용으로 돌리나 시간 차이가 좀 나긴 한데 무슨 차이인진 모르겠다.

$ time ./classify models/mobilenet_v2_1.0_224_inat_bird_quant.tflite models/inat_bird_labels.txt images/parrot_re.bmp 0.2
0.79297923 Ara macao (Scarlet Macaw)

real    0m3.914s
user    0m0.612s
sys     0m0.132s

 

쥐꼬리 만큼 줄긴했는데... user쪽이 많이 줄어들긴 했다.

$ time ./classify models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite models/inat_bird_labels.txt images/parrot_re.bmp 0.1
0.79297923 Ara macao (Scarlet Macaw)

real    0m3.542s
user    0m0.108s
sys     0m0.171s

 

 

'프로그램 사용 > google coral' 카테고리의 다른 글

google coral with tpu, python  (0) 2022.02.07
edgetpu_c.h 파일 내용 분석  (0) 2022.02.07
tensorflow brace-enclosed initializer list  (4) 2022.02.07
google coral, tpu yolo  (0) 2022.01.27
coral tpu delegate example  (0) 2022.01.25
Posted by 구차니

이전에 했었는데 먼가 내용을 다시보니 부족해서 추가

 

edgetpu 용으로 변환된 모델

$ python3 classify_image.py   --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite   --labels models/inat_bird_labels.txt   --input images/parrot.jpg
----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU memory.
137.5ms
13.0ms
13.1ms
13.1ms
13.1ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.77734

 

변환되지 않은 모델. 속도 차이가 상당히 나는데 반복 실행시 속도가 줄어들지 않는걸 보면..

tpu 가속을 받지 못하고 cpu로 돌리기 때문이려나?

그리고 정확도는 소수점 5자리 까지 동일하게 나온다.

quantization 으로 인한 정확도 차이는 잘만들면 무시할 만한 수준 이라고 보면 될 듯.

$ python3 classify_image.py \
>   --model models/mobilenet_v2_1.0_224_inat_bird_quant.tflite \
>   --labels models/inat_bird_labels.txt \
>   --input images/parrot.jpg


----INFERENCE TIME----
Note: The first inference on Edge TPU is slow because it includes loading the model into Edge TPU m                                                                                                           emory.
552.0ms
542.7ms
541.3ms
549.1ms
541.4ms
-------RESULTS--------
Ara macao (Scarlet Macaw): 0.77734

 

2020.10.20 - [프로그램 사용/google coral] - google coral, ubuntu 18.04

 

 

'프로그램 사용 > google coral' 카테고리의 다른 글

google coral with tpu, cpp  (4) 2022.02.07
edgetpu_c.h 파일 내용 분석  (0) 2022.02.07
tensorflow brace-enclosed initializer list  (4) 2022.02.07
google coral, tpu yolo  (0) 2022.01.27
coral tpu delegate example  (0) 2022.01.25
Posted by 구차니

 

2020년 1월 30일 커밋 되었는데

헤더에 사용법을 넣어두었고 그게 바로.. 문제의 그 내용 -_-

// 4. Modify interpreter with the delegate.
//
// auto* delegate =
//     edgetpu_create_delegate(device.type, device.path, nullptr, 0);
// interpreter->ModifyGraphWithDelegate({delegate, edgetpu_free_delegate});


// Frees delegate returned by `edgetpu_create_delegate`.
EDGETPU_EXPORT void edgetpu_free_delegate(TfLiteDelegate* delegate);

[링크 : https://github.com/google-coral/edgetpu/blob/master/libedgetpu/edgetpu_c.h]

 

delegate를 free 하지 않고(메모리 누수를 감수하면..)

위의 함수 원형으로 delegate만 던져주거나

unique_ptr <Delegate, Deleter > 로 랩핑하면 가능을 할 것 같은데

그게 아니라면..  { } 로 감싼 부분이 자동으로 변형되는건 아니겠지? (컴파일러 옵션에 의해)

TfLiteStatus ModifyGraphWithDelegate(
  TfLiteDelegate *delegate
)

TfLiteStatus ModifyGraphWithDelegate(
  std::unique_ptr< Delegate, Deleter > delegate
)

[링크 : https://www.tensorflow.org/lite/api_docs/cc/class/tflite/interpreter#modifygraphwithdelegate_1]

'프로그램 사용 > google coral' 카테고리의 다른 글

google coral with tpu, cpp  (4) 2022.02.07
google coral with tpu, python  (0) 2022.02.07
tensorflow brace-enclosed initializer list  (4) 2022.02.07
google coral, tpu yolo  (0) 2022.01.27
coral tpu delegate example  (0) 2022.01.25
Posted by 구차니