embeded/i.mx 8m plus2026. 5. 13. 17:48

cortex-M 을 위한 CMSIS-NN 예제 라고 해야하나?

아무튼 먼가.. 드럽네 -_-

그나저나 웨이트는.. 어떻게 펌웨어 안에 넣지?

 

[링크 : https://www.nxp.com/docs/en/application-note/AN12781.pdf]

[링크 : https://www.nxp.com/design/design-center/software/eiq-ai-development-environment/eiq-for-arm-cmsis-nn:eIQArmCMSISNN]

'embeded > i.mx 8m plus' 카테고리의 다른 글

g2d_surface g2d_blit()  (0) 2026.02.10
eiq 모델 정리  (0) 2025.09.16
eiq 데이터 구조  (0) 2025.09.05
ubuntu 22.04 + cuda + cudnn 설치  (0) 2025.09.04
import tensorflow illegal instruction  (0) 2025.09.04
Posted by 구차니
embeded/Cortex-M7 STM2026. 5. 13. 17:35

'embeded > Cortex-M7 STM' 카테고리의 다른 글

stm32h757 링커 스크립트  (0) 2026.03.13
stm32h757 메모리(SRAM) 구조  (0) 2026.03.13
stm32f7 dual bank flash  (0) 2026.02.03
stm32f746g-disco with semtech sx1276 and lvgl  (0) 2026.02.03
modbus rtu coil read  (0) 2024.10.10
Posted by 구차니
embeded/FPGA - ALTERA2026. 5. 8. 12:28

9년 전에 조사한 적이 있었네 -_-

2017.12.26 - [embeded/FPGA - ALTERA] - GHDL - 시뮬레이터

 

$ ghdl
Command 'ghdl' not found, but can be installed with:
sudo snap install ghdl         # version 3.0.0, or
sudo apt  install ghdl-common  # version 1.0.0+dfsg-6
See 'snap info ghdl' for additional versions.

$ sudo apt  install ghdl-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  ghdl-common
0 upgraded, 1 newly installed, 0 to remove and 54 not upgraded.
Need to get 154 kB of archives.
After this operation, 2,444 kB of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu jammy/universe amd64 ghdl-common amd64 1.0.0+dfsg-6 [154 kB]
Fetched 154 kB in 0s (4,318 kB/s)   
Selecting previously unselected package ghdl-common.
(Reading database ... 304538 files and directories currently installed.)
Preparing to unpack .../ghdl-common_1.0.0+dfsg-6_amd64.deb ...
Unpacking ghdl-common (1.0.0+dfsg-6) ...
Setting up ghdl-common (1.0.0+dfsg-6) ...
Processing triggers for man-db (2.10.2-1) ...

$ sudo apt-get install ghdl*
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ghdl-gcc' for glob 'ghdl*'
Note, selecting 'ghdl-mcode' for glob 'ghdl*'
Note, selecting 'ghdl-common' for glob 'ghdl*'
Note, selecting 'ghdl-llvm' for glob 'ghdl*'
Note, selecting 'ghdl' for glob 'ghdl*'
ghdl-common is already the newest version (1.0.0+dfsg-6).
The following additional packages will be installed:
  gcc-10-base libgnat-10
Suggested packages:
  gtkwave
The following NEW packages will be installed:
  gcc-10-base ghdl ghdl-gcc ghdl-llvm ghdl-mcode libgnat-10
0 upgraded, 6 newly installed, 0 to remove and 54 not upgraded.
Need to get 15.5 MB of archives.
After this operation, 60.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y 

 

[링크 : https://github.com/ghdl/setup-ghdl]

[링크 : https://askubuntu.com/questions/1199027/ghdl-in-ubuntu-18-040-lts-gtkwave-vlsi-fpga-vhdl]

[링크 : https://github.com/ghdl/ghdl/releases]

 

by gpt  

test.vhd
entity test is
end;

architecture sim of test is
begin
    process
    begin
        report "Hello GHDL";
        wait;
    end process;
end;

컴파일:

ghdl -a test.vhd

엘라보레이션:

ghdl -e test

실행:

ghdl -r test

출력:

Hello GHDL
5. GTKWave 함께 설치 (파형 보기)

보통 같이 설치합니다.

sudo apt install gtkwave

VCD 생성 실행 예시:

ghdl -r test --vcd=test.vcd
gtkwave test.vcd

 

먼가 되긴한데.. 문법이 다른가?

$ cat test.vhd 
entity test is
end;

architecture sim of test is
begin
    process
    begin
        report "Hello GHDL";
        wait;
    end process;
end;

$ ghdl -a 7seg.vhdl 


$ ghdl -r test
test.vhd:8:9:@0ms:(report note): Hello GHDL

$ ghdl -r test --vcd=test.vcd
test.vhd:8:9:@0ms:(report note): Hello GHDL

$ gtkwave test.vcd
Gtk-Message: 12:29:46.165: Failed to load module "canberra-gtk-module"

GTKWave Analyzer v3.3.104 (w)1999-2020 BSI

No symbols in VCD file..nothing to do!


$ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module


$ gtkwave test.vcd

GTKWave Analyzer v3.3.104 (w)1999-2020 BSI

No symbols in VCD file..nothing to do!

$ cat test.vcd
$date
  Fri May  8 12:29:32 2026
$end
$version
  GHDL v0
$end
$timescale
  1 fs
$end
$scope module standard $end
$upscope $end
$scope module test $end
$upscope $end
$enddefinitions $end
#0


Posted by 구차니
embeded/FPGA - ALTERA2026. 5. 2. 22:54

정말로 dip 을 전부 0 으로 바꾸고 하니 켜진다.

 

de1soc_lxde_1604_readme.txt

Prerequisite: you need at least a 8Gb microSD card

Setup steps:
1. Unzip the image file
2. Insert the microSD card to the host PC and write the image file into the microSD with the Win32DiskImager tool
3. Insert the programmed microSD card to the DE1-SoC board
3. Set the MSEL[4:0] on your DE1-SoC to 00000
4. Connect a VGA monitor to the DE1-SoC board
5. Conect USB mouse and keyboard to the USB ports on the board
6. Power on the board and you will see the LXDE graphical environment

Additional information:
1. You can read the DE1-SoC-Getting_Started_Guide.pdf in the system CD for more details about setting up the Board
2. The Quartus project is built in Quartus II v16.0. The project is located at /Demonstrations/SOC_FPGA/DE1_SOC_Linux_FB (rev.F Board,version 5.1.1)
3. The Linux kernel version is 4.5. You can get the kernel source code from https://github.com/altera-opensource/linux-socfpga 
4. The default password fot root user is terasic

 

파티션이 어떻게 구성되었나 했는데 그냥 SD 카드에 rootfs 자체를 올려 버린 듯.

 

root / terasic

ubunt 16.04

U-Boot SPL 2013.01.01 (Oct 12 2016 - 10:38:03)
BOARD : Altera SOCFPGA Cyclone V Board
CLOCK: EOSC1 clock 25000 KHz
CLOCK: EOSC2 clock 25000 KHz
CLOCK: F2S_SDR_REF clock 0 KHz
CLOCK: F2S_PER_REF clock 0 KHz
CLOCK: MPU clock 925 MHz
CLOCK: DDR clock 400 MHz
CLOCK: UART clock 100000 KHz
CLOCK: MMC clock 50000 KHz
CLOCK: QSPI clock 3613 KHz
RESET: COLD
INFO : Watchdog enabled
SDRAM: Initializing MMR registers
SDRAM: Calibrating PHY
SEQ.C: Preparing to start memory calibration
SEQ.C: CALIBRATION PASSED
SDRAM: 1024 MiB
ALTERA DWMMC: 0


U-Boot 2013.01.01 (Oct 12 2016 - 10:40:34)

CPU   : Altera SOCFPGA Platform
BOARD : Altera SOCFPGA Cyclone V Board
I2C:   ready
DRAM:  1 GiB
MMC:   ALTERA DWMMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Skipped ethaddr assignment due to invalid EMAC address in EEPROM
Net:   mii0
Warning: failed to set MAC address

Hit any key to stop autoboot:  0
reading u-boot.scr
200 bytes read in 3 ms (64.5 KiB/s)
## Executing script at 02000000
reading soc_system.rbf
7007184 bytes read in 327 ms (20.4 MiB/s)
## Starting application at 0x3FF795A4 ...
## Application terminated, rc = 0x0
reading zImage
5538512 bytes read in 259 ms (20.4 MiB/s)
reading socfpga.dtb
31245 bytes read in 5 ms (6 MiB/s)
## Flattened Device Tree blob at 00000100
   Booting using the fdt blob at 0x00000100
   reserving fdt memory region: addr=0 size=1000
   Loading Device Tree to 03ff5000, end 03fffa0c ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.5.0-00183-g4647b69-dirty (root@matthew) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) ) #52 SMP Thu Oct 27 17:10:02 CST 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Terasic DE-0(Atlas)
[    0.000000] Truncating RAM at 0x00000000-0x40000000 to -0x30000000
[    0.000000] Consider using a HIGHMEM enabled kernel.
[    0.000000] cma: Reserved 512 MiB at 0x10000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 13 pages/cpu @cf8c3000 s21824 r8192 d23232 u53248
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 195072
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 241776K/786432K available (8614K kernel code, 577K rwdata, 2160K rodata, 600K init, 159K bss, 20368K reserved, 524288K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0a8db9c   (10775 kB)
[    0.000000]       .init : 0xc0a8e000 - 0xc0b24000   ( 600 kB)
[    0.000000]       .data : 0xc0b24000 - 0xc0bb46fc   ( 578 kB)
[    0.000000]        .bss : 0xc0bb46fc - 0xc0bdc524   ( 160 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32460000
[    0.000000] L2C: platform provided aux values permit register corruption.
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32460000
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[    0.000000] L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x76460001
[    0.000000] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[    0.000005] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
[    0.000016] Switching to timer-based delay loop, resolution 10ns
[    0.000311] Console: colour dummy device 80x30
[    0.000329] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=1000000)
[    0.000341] pid_max: default: 32768 minimum: 301
[    0.000427] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000437] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000941] CPU: Testing write buffer coherency: ok
[    0.000969] ftrace: allocating 26820 entries in 79 pages
[    0.041869] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.042092] Setting up static identity map for 0x8280 - 0x82d8
[    0.043433] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.043494] Brought up 2 CPUs
[    0.043508] SMP: Total of 2 processors activated (400.00 BogoMIPS).
[    0.043513] CPU: All CPU(s) started in SVC mode.
[    0.044174] devtmpfs: initialized
[    0.050496] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.050777] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.074717] NET: Registered protocol family 16
[    0.083918] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.090177] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.090191] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.121529] SCSI subsystem initialized
[    0.121788] usbcore: registered new interface driver usbfs
[    0.121847] usbcore: registered new interface driver hub
[    0.121909] usbcore: registered new device driver usb
[    0.122039] soc:usbphy@0 supply vcc not found, using dummy regulator
[    0.122789] media: Linux media interface: v0.10
[    0.122847] Linux video capture interface: v2.00
[    0.122899] pps_core: LinuxPPS API ver. 1 registered
[    0.122906] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.122932] PTP clock support registered
[    0.123089] FPGA manager framework
[    0.123660] Bluetooth: Core ver 2.21
[    0.123710] NET: Registered protocol family 31
[    0.123717] Bluetooth: HCI device and connection manager initialized
[    0.123732] Bluetooth: HCI socket layer initialized
[    0.123743] Bluetooth: L2CAP socket layer initialized
[    0.123768] Bluetooth: SCO socket layer initialized
[    0.125402] clocksource: Switched to clocksource timer1
[    0.173018] NET: Registered protocol family 2
[    0.173512] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.173589] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.173695] TCP: Hash tables configured (established 8192 bind 8192)
[    0.173770] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.173814] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.174000] NET: Registered protocol family 1
[    0.174331] RPC: Registered named UNIX socket transport module.
[    0.174340] RPC: Registered udp transport module.
[    0.174346] RPC: Registered tcp transport module.
[    0.174351] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.175514] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.184446] NFS: Registering the id_resolver key type
[    0.184495] Key type id_resolver registered
[    0.184502] Key type id_legacy registered
[    0.184563] ntfs: driver 2.1.32 [Flags: R/W].
[    0.184838] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.185430] SGI XFS with ACLs, security attributes, no debug enabled
[    0.189606] io scheduler noop registered (default)
[    0.211937] Console: switching to colour frame buffer device 128x48
[    0.224086] altvipfb ff200100.vip2: fb0: altvipfb frame buffer device at 0x10400000+0x300000
[    0.227906] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.228925] console [ttyS0] disabled
[    0.228966] ffc02000.serial0: ttyS0 at MMIO 0xffc02000 (irq = 39, base_baud = 6250000) is a 16550A
[    0.852835] console [ttyS0] enabled
[    0.856932] ffc03000.serial1: ttyS1 at MMIO 0xffc03000 (irq = 40, base_baud = 6250000) is a 16550A
[    0.867533] brd: module loaded
[    0.872162] CAN device driver interface
[    0.876535] stmmac - user ID: 0x10, Synopsys ID: 0x37
[    0.881569]  Ring mode enabled
[    0.884608]  DMA HW capability register supported
[    0.889135]  Enhanced/Alternate descriptors
[    0.893481]  Enabled extended descriptors
[    0.897480]  RX Checksum Offload Engine supported (type 2)
[    0.902938]  TX Checksum insertion supported
[    0.907195]  Enable RX Mitigation via HW Watchdog Timer
[    0.912913] socfpga-dwmac ff702000.ethernet eth0: No MDIO subnode found
[    0.925033] libphy: stmmac: probed
[    0.928449] eth0: PHY ID 00221611 at 1 IRQ POLL (stmmac-0:01) active
[    0.935262] ffb40000.usb supply vusb_d not found, using dummy regulator
[    0.941921] ffb40000.usb supply vusb_a not found, using dummy regulator
[    1.225353] dwc2 ffb40000.usb: EPs: 16, dedicated fifos, 8064 entries in SPRAM
[    1.325742] dwc2 ffb40000.usb: DWC OTG Controller
[    1.330452] dwc2 ffb40000.usb: new USB bus registered, assigned bus number 1
[    1.337516] dwc2 ffb40000.usb: irq 41, io mem 0x00000000
[    1.343072] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.349848] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.357047] usb usb1: Product: DWC OTG Controller
[    1.361732] usb usb1: Manufacturer: Linux 4.5.0-00183-g4647b69-dirty dwc2_hsotg
[    1.369016] usb usb1: SerialNumber: ffb40000.usb
[    1.374165] hub 1-0:1.0: USB hub found
[    1.377947] hub 1-0:1.0: 1 port detected
[    1.382544] usbcore: registered new interface driver usb-storage
[    1.388912] mousedev: PS/2 mouse device common for all mice
[    1.394776] i2c /dev entries driver
[    1.398719] usbcore: registered new interface driver uvcvideo
[    1.404442] USB Video Class driver (1.1.1)
[    1.408544] gspca_main: v2.14.0 registered
[    1.412684] usbcore: registered new interface driver benq
[    1.418129] usbcore: registered new interface driver conex
[    1.423641] usbcore: registered new interface driver cpia1
[    1.429166] usbcore: registered new interface driver dtcs033
[    1.434849] usbcore: registered new interface driver etoms
[    1.440374] usbcore: registered new interface driver finepix
[    1.446081] usbcore: registered new interface driver jeilinj
[    1.451767] usbcore: registered new interface driver jl2005bcd
[    1.457660] usbcore: registered new interface driver kinect
[    1.463259] usbcore: registered new interface driver konica
[    1.468869] usbcore: registered new interface driver mars
[    1.474306] usbcore: registered new interface driver mr97310a
[    1.480114] usbcore: registered new interface driver nw80x
[    1.485665] usbcore: registered new interface driver ov519
[    1.491179] usbcore: registered new interface driver ov534
[    1.496707] usbcore: registered new interface driver ov534_9
[    1.502407] usbcore: registered new interface driver pac207
[    1.508022] usbcore: registered new interface driver gspca_pac7302
[    1.514224] usbcore: registered new interface driver pac7311
[    1.519924] usbcore: registered new interface driver se401
[    1.525458] usbcore: registered new interface driver sn9c2028
[    1.531234] usbcore: registered new interface driver gspca_sn9c20x
[    1.537453] usbcore: registered new interface driver sonixb
[    1.543055] usbcore: registered new interface driver sonixj
[    1.548667] usbcore: registered new interface driver spca500
[    1.554350] usbcore: registered new interface driver spca501
[    1.560046] usbcore: registered new interface driver spca505
[    1.565743] usbcore: registered new interface driver spca506
[    1.571427] usbcore: registered new interface driver spca508
[    1.577134] usbcore: registered new interface driver spca561
[    1.582820] usbcore: registered new interface driver spca1528
[    1.588610] usbcore: registered new interface driver sq905
[    1.594122] usbcore: registered new interface driver sq905c
[    1.599737] usbcore: registered new interface driver sq930x
[    1.605354] usbcore: registered new interface driver sunplus
[    1.611038] usbcore: registered new interface driver stk014
[    1.616648] usbcore: registered new interface driver stk1135
[    1.622338] usbcore: registered new interface driver stv0680
[    1.628038] usbcore: registered new interface driver t613
[    1.633477] usbcore: registered new interface driver gspca_topro
[    1.639522] usbcore: registered new interface driver touptek
[    1.645202] usbcore: registered new interface driver tv8532
[    1.650813] usbcore: registered new interface driver vc032x
[    1.656422] usbcore: registered new interface driver vicam
[    1.661949] usbcore: registered new interface driver xirlink-cit
[    1.668019] usbcore: registered new interface driver gspca_zc3xx
[    1.674066] usbcore: registered new interface driver ALi m5602
[    1.679952] usbcore: registered new interface driver STV06xx
[    1.685663] usbcore: registered new interface driver gspca_gl860
[    1.692422] Bluetooth: HCI UART driver ver 2.3
[    1.696882] Bluetooth: HCI UART protocol H4 registered
[    1.701998] Bluetooth: HCI UART protocol BCSP registered
[    1.707334] Bluetooth: HCI UART protocol LL registered
[    1.712452] Bluetooth: HCI UART protocol ATH3K registered
[    1.717848] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    1.724164] Bluetooth: HCI UART protocol Intel registered
[    1.729624] Bluetooth: HCI UART protocol BCM registered
[    1.734829] Bluetooth: HCI UART protocol QCA registered
[    1.740146] usbcore: registered new interface driver bcm203x
[    1.745897] usbcore: registered new interface driver bpa10x
[    1.751512] usbcore: registered new interface driver bfusb
[    1.757078] usbcore: registered new interface driver btusb
[    1.762548] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[    1.768296] Synopsys Designware Multimedia Card Interface Driver
[    1.774581] dw_mmc ff704000.dwmmc0: IDMAC supports 32-bit address mode.
[    1.781394] dw_mmc ff704000.dwmmc0: Using internal DMA controller.
[    1.787583] dw_mmc ff704000.dwmmc0: Version ID is 240a
[    1.792741] dw_mmc ff704000.dwmmc0: DW MMC controller at irq 30,32 bit host data width,1024 deep fifo
[    1.835392] dw_mmc ff704000.dwmmc0: 1 slots initialized
[    1.841009] ledtrig-cpu: registered to indicate activity on CPUs
[    1.847224] usbcore: registered new interface driver usbhid
[    1.852773] usbhid: USB HID core driver
[    1.856833] fpga_manager fpga0: Altera SOCFPGA FPGA Manager registered
[    1.863818] altera_hps2fpga_bridge ff400000.fpga-bridge: fpga bridge [lwhps2fpga] registered
[    1.872466] altera_hps2fpga_bridge ff500000.fpga-bridge: fpga bridge [hps2fpga] registered
[    1.880947] altera_hps2fpga_bridge ff600000.fpga-bridge: fpga bridge [fpga2hps] registered
[    1.889675] altera_fpga2sdram_bridge soc:fpga2sdram-bridge: fpga bridge [fpga2sdram] registered
[    1.898357] altera_fpga2sdram_bridge soc:fpga2sdram-bridge: driver initialized with handoff 00000000
[    1.907794] fpga-region soc:base-fpga-region: FPGA Region probed
[    1.914046] oprofile: no performance counters
[    1.918508] oprofile: using timer interrupt.
[    1.923835] NET: Registered protocol family 10
[    1.929063] sit: IPv6 over IPv4 tunneling driver
[    1.934268] NET: Registered protocol family 17
[    1.938743] NET: Registered protocol family 15
[    1.943172] can: controller area network core (rev 20120528 abi 9)
[    1.949389] NET: Registered protocol family 29
[    1.953821] can: raw protocol (rev 20120528)
[    1.958089] can: broadcast manager protocol (rev 20120528 t)
[    1.963731] can: netlink gateway (rev 20130117) max_hops=1
[    1.969497] Bluetooth: RFCOMM TTY layer initialized
[    1.974374] Bluetooth: RFCOMM socket layer initialized
[    1.979523] Bluetooth: RFCOMM ver 1.11
[    1.983271] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.988582] Bluetooth: BNEP filters: protocol multicast
[    1.993792] Bluetooth: BNEP socket layer initialized
[    1.998756] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    2.004655] Bluetooth: HIDP socket layer initialized
[    2.009666] 8021q: 802.1Q VLAN Support v1.8
[    2.013867] lib80211: common routines for IEEE802.11 drivers
[    2.019591] Key type dns_resolver registered
[    2.023943] ThumbEE CPU extension supported.
[    2.028223] Registering SWP/SWPB emulation handler
[    2.034119] of_cfs_init
[    2.036666] of_cfs_init: OK
[    2.041328] Bluetooth: Starting self testing
[    2.085351] usb 1-1: new high-speed USB device number 2 using dwc2
[    2.097751] Bluetooth: ECDH test passed in 50876 usecs
[    2.103948] Bluetooth: SMP test passed in 134 usecs
[    2.108870] Bluetooth: Finished self testing
[    2.113431] ttyS0 - failed to request DMA
[    2.117487] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    2.117520] Waiting for root device /dev/mmcblk0p2...
[    2.132287] mmc0: new high speed SDHC card at address b36c
[    2.138252] mmcblk0: mmc0:b36c SDABC 30.0 GiB
[    2.143713]  mmcblk0: p1 p2 p3
[    2.225780] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    2.295525] usb 1-1: New USB device found, idVendor=0424, idProduct=2512
[    2.302206] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.309957] hub 1-1:1.0: USB hub found
[    2.313816] hub 1-1:1.0: 2 ports detected
[    2.450577] EXT4-fs (mmcblk0p2): recovery complete
[    2.456318] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.464400] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.477897] devtmpfs: mounted
[    2.481304] Freeing unused kernel memory: 600K (c0a8e000 - c0b24000)
[    2.700821] systemd[1]: System time before build time, advancing clock.
[    2.721925] systemd[1]: Failed to insert module 'autofs4': No such file or directory
[    2.750264] random: systemd urandom read with 58 bits of entropy available
[    2.759785] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    2.778156] systemd[1]: Detected architecture arm.

Welcome to Ubuntu 16.04.1 LTS!

[    2.816078] systemd[1]: Set hostname to <DE1_SoC>.
[    3.207584] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    3.225650] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    3.245557] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[    3.265561] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[    3.285724] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    3.305561] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[    3.325467] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    3.345613] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    3.365471] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[    3.385651] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    3.416756] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    3.435713] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    3.485790] systemd[1]: Starting Nameserver information manager...
         Starting Nameserver information manager...
[    3.507481] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[    3.576219] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    3.597416] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[    3.617216] systemd[1]: Starting Set console keymap...
         Starting Set console keymap...
[    3.647681] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    3.675946] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[    3.695782] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[    3.715593] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    3.735763] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[    3.815900] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[    3.837510] systemd[1]: Started Read required files in advance.
[  OK  ] Started Read required files in advance.
[    3.871472] systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
[    3.904989] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Set console keymap.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Nameserver information manager.
         Starting udev Kernel Device Manager...
         Starting udev Coldplug all Devices...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Set console font and keymap...
         Starting Tell Plymouth To Write Out Runtime Data...
         Mounting Configuration File System...
         Starting Apply Kernel Variables...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Mounted Configuration File System.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
         Starting Raise network interfaces...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Trigger resolvconf update for networkd DNS.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Started ACPI Events Check.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Generic Board Startup...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
[  OK  ] Started Regular background program processing daemon.
         Starting Permit User Sessions...
         Starting Restore /etc/resolv.conf i...re the ppp link was shut down...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started ACPI event daemon.
         Starting System Logging Service...
         Starting Accounts Service...
         Starting LSB: Start busybox udhcpd at boot time...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting Modem Manager...
         Starting Network Manager...
[  OK  ] Started Daily apt activities.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
         Starting Login Service...
         Starting Cape Manager Service...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
[  OK  ] Started System Logging Service.
[  OK  ] Started Set console font and keymap.
[  OK  ] Started Generic Board Startup.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Restore /etc/resolv.conf if...fore the ppp link was shut down.
[  OK  ] Started Cape Manager Service.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Started LSB: Start busybox udhcpd at boot time.
[  OK  ] Started Network Manager.
[  OK  ] Started Login Service.
         Starting Network Manager Script Dispatcher Service...
         Starting Network Manager Wait Online...
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
[  OK  ] Started ifup for eth0.
         Starting Light Display Manager...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
[  OK  ] Started Modem Manager.
         Starting Hostname Service...
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started Light Display Manager.
[  OK  ] Started Hostname Service.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Created slice User Slice of root.
         Starting User Manager for UID 0...
[  OK  ] Started Session c1 of user root.
[  OK  ] Started User Manager for UID 0.
         Starting Disk Manager...
[  OK  ] Started Disk Manager.
[  OK  ] Started Network Manager Wait Online.
[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
[  OK  ] Reached target Network is Online.
         Starting LSB: Advanced IEEE 802.11 management daemon...
         Starting LSB: Apache2 web server...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started LSB: Advanced IEEE 802.11 management daemon.
[  OK  ] Started /etc/rc.local Compatibility.
         Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Getty on tty1.
         Starting Set console scheme...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Set console scheme.
[  OK  ] Started LSB: Apache2 web server.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Stop ureadahead data collection 45s after completed startup.
[  OK  ] Started Update UTMP about System Runlevel Changes.

Ubuntu 16.04.1 LTS DE1_SoC ttyS0

default username:password is [ubuntu:temppwd]

DE1_SoC login:

'embeded > FPGA - ALTERA' 카테고리의 다른 글

ghdl 사용해봄  (0) 2026.05.08
altera cyclone V HPS BOOTSEL, CLOCKSEL  (0) 2026.04.29
DE1-SOC getting started guide 따라하기  (0) 2026.04.28
nios II 단종  (0) 2026.03.22
de1-soc system builder 에서 hps 추가 후 빌드 실패  (0) 2026.03.21
Posted by 구차니
embeded/FPGA - ALTERA2026. 4. 29. 22:56

de1-soc 회로도를 보면 다음과 같이 연결되어 있다.

 

674 page

 

675~7 page

678 page

 

689 page

 

697 page

 

 

[링크 : https://www.intel.com/programmable/technical-pdfs/683126.pdf]

 

MSEL의 012는 BOOTSEL(BSEL)

MSEL의 34는 CLKSEL(CSEL) 인데

리눅스 부팅시에는

 - BSEL 5번 (HPS boot from FPGA)

 - CSEL 1번 (osc1_clk(10~12.5Mhz) / ID mode div 128 / Data transfer mode div 1 / mpu multi 32 / PLL Lock)

LXDE 부팅시에는

 - BSEL 7번 (QSPI boot)

 - CSEL 3번 ( osc1_clk(25~50Mhz)  / ID mode div 512/ Data transfer mode div 4 / mpu multi 8 / PLL Lock )

으로 해석하면 되려나?

 

그냥(?) 리눅스 셋팅 LXDE 셋팅

2026.04.28 - [embeded/FPGA - ALTERA] - DE1-SOC getting started guide 따라하기

'embeded > FPGA - ALTERA' 카테고리의 다른 글

ghdl 사용해봄  (0) 2026.05.08
DE1-SOC LXDE 부팅 완료  (0) 2026.05.02
DE1-SOC getting started guide 따라하기  (0) 2026.04.28
nios II 단종  (0) 2026.03.22
de1-soc system builder 에서 hps 추가 후 빌드 실패  (0) 2026.03.21
Posted by 구차니
embeded/FPGA - ALTERA2026. 4. 28. 21:19

메뉴얼과는 다르게 hps가 먼저 붙고 FPGA가 나중에 붙도록 수정되어 있다

[링크 : https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&No=886]

 

 

하라는대로 

CD(?) 내의 아래 경로에 sof 파일을 5CSEMA5 에 굽고

DE1-SoC_v.5.1.3_HWrevF.revG_SystemCD\Demonstrations\FPGA\my_first_fpga

 

전원을 껐다 켜주니

리눅스도 켜지고, 7seg 에서 숫자도 잘 돌아간다.

 

근데 이미지가 좀 잘못되었나.. (저에 멀 구었는지 기억이..)

starting kernel 에서 안넘어가네 -_-

 

+

메뉴얼을 보니 잘못된 이미지로 한 듯. 이전에 멀 구웠는지 까먹었는데

lxde 였던것 같기도 한데. MSEL을 다르게 설정하지 않아서 정상적으로 안켜진듯

3. Set the MSEL[4:0] on your DE1-SoC to 00000

 

아래 링크는 2026.04.28 까진 살아있음

[링크 : http://www.terasic.com/downloads/cd-rom/de1-soc/linux_BSP/DE1_SoC_SD.zip]

 

U-Boot SPL 2013.01.01 (Nov 04 2013 - 19:51:38)
BOARD : Altera SOCFPGA Cyclone V Board
SDRAM: Initializing MMR registers
SDRAM: Calibrating PHY
SEQ.C: Preparing to start memory calibration
SEQ.C: CALIBRATION PASSED
ALTERA DWMMC: 0


U-Boot 2013.01.01 (Oct 24 2013 - 17:40:22)

CPU   : Altera SOCFPGA Platform
BOARD : Altera SOCFPGA Cyclone V Board
DRAM:  1 GiB
MMC:   ALTERA DWMMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   mii0
Warning: failed to set MAC address

Hit any key to stop autoboot:  0
reading u-boot.scr
** Unable to read file u-boot.scr **
Optional boot script not found. Continuing to boot normally
reading zImage
3809104 bytes read in 1283 ms (2.8 MiB/s)
reading socfpga.dtb
17119 bytes read in 13 ms (1.3 MiB/s)
fpgaintf
ffd08028: 00000000    ....
fpga2sdram
ffc25080: 00000000    ....
axibridge
ffd0501c: 00000000    ....
## Flattened Device Tree blob at 00000100
   Booting using the fdt blob at 0x00000100
   Loading Device Tree to 03ff8000, end 03fff2de ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Linux version 3.12.0-00307-g507abb4-dirty (root@matthew) (gcc version 4.6.3 (Sou             rcery CodeBench Lite 2012.03-57) ) #2 SMP Mon Jan 6 19:54:56 CST 2014
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Altera SOCFPGA, model: Altera SOCFPGA Cyclone V
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 8 pages/cpu @80fd1000 s11328 r8192 d13248 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1031484K/1048576K available (5637K kernel code, 253K rwdata, 1424K rodat             a, 343K init, 256K bss, 17092K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x806ed828   (7063 kB)
      .init : 0x806ee000 - 0x80743c40   ( 344 kB)
      .data : 0x80744000 - 0x807834f0   ( 254 kB)
       .bss : 0x807834f0 - 0x807c355c   ( 257 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:16 nr_irqs:16 16
sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 42949ms
Console: colour dummy device 80x30
Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
ftrace: allocating 17704 entries in 52 pages
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x8051f018 - 0x8051f070
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
NET: Registered protocol family 16
fpga bridge driver
DMA: preallocated 256 KiB pool for atomic coherent allocations
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410030c9, AUX_CTRL 0x32460000, Cache size: 512 kB
syscon fffef000.l2-cache: regmap [mem 0xfffef000-0xfffeffff] registered
syscon ffd05000.rstmgr: regmap [mem 0xffd05000-0xffd05fff] registered
syscon ffc25000.sdrctl: regmap [mem 0xffc25000-0xffc25fff] registered
syscon ff800000.l3regs: regmap [mem 0xff800000-0xff800fff] registered
syscon ffd08000.sysmgr: regmap [mem 0xffd08000-0xffd0bfff] registered
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
altera_hps2fpga_bridge fpgabridge.2: fpga bridge [hps2fpga] registered as device              hps2fpga
altera_hps2fpga_bridge fpgabridge.2: init-val not specified
altera_hps2fpga_bridge fpgabridge.3: fpga bridge [lshps2fpga] registered as devi             ce lwhps2fpga
altera_hps2fpga_bridge fpgabridge.3: init-val not specified
altera_hps2fpga_bridge fpgabridge.4: fpga bridge [fpga2hps] registered as device              fpga2hps
altera_hps2fpga_bridge fpgabridge.4: init-val not specified
bio: create slab <bio-0> at 0
FPGA Mangager framework driver
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l             inux.it>
PTP clock support registered
Switched to clocksource timer1
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
arm-pmu arm-pmu: PMU:CTI successfully enabled
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
NTFS driver 2.1.30 [Flags: R/W].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 2014
io scheduler noop registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
ffc02000.serial0: ttyS0 at MMIO 0xffc02000 (irq = 194, base_baud = 6250000) is a              16550A
console [ttyS0] enabled
altera_fpga_manager ff706000.fpgamgr: fpga manager [Altera FPGA Manager] registe             red as minor 0
brd: module loaded
cadence-qspi ff705000.spi: DMA NOT enabled
cadence-qspi ff705000.spi: master is unqueued, this is deprecated
m25p80 spi2.0: unrecognized JEDEC id ffffff
cadence-qspi ff705000.spi: Cadence QSPI controller driver
dw_spi_mmio fff01000.spi: master is unqueued, this is deprecated
CAN device driver interface
c_can_platform ffc00000.d_can: invalid resource
c_can_platform ffc00000.d_can: control memory is not used for raminit
c_can_platform ffc00000.d_can: c_can_platform device registered (regs=c08e4000,              irq=163)
stmmac - user ID: 0x10, Synopsys ID: 0x37
 Ring mode enabled
 DMA HW capability register supported
 Enhanced/Alternate descriptors
        Enabled extended descriptors
 RX Checksum Offload Engine supported (type 2)
 TX Checksum insertion supported
 Enable RX Mitigation via HW Watchdog Timer
libphy: stmmac: probed
eth0: PHY ID 00221611 at 1 IRQ 0 (stmmac-0:01) active
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
Synopsys Designware Multimedia Card Interface Driver
dwmmc_socfpga ff704000.dwmmc0: Using internal DMA controller.
dwmmc_socfpga ff704000.dwmmc0: Version ID is 240a
dwmmc_socfpga ff704000.dwmmc0: DW MMC controller at irq 171, 32 bit host data wi             dth, 1024 deep fifo
mmc_host mmc0: Bus speed (slot 0) = 12500000Hz (slot req 400000Hz, actual 390625             HZ div = 16)
dwmmc_socfpga ff704000.dwmmc0: 1 slots initialized
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
dwmmc_socfpga ff704000.dwmmc0: data FIFO error (status=00000800)
mmc0: problem reading SD Status register.
mmc_host mmc0: Bus speed (slot 0) = 12500000Hz (slot req 12500000Hz, actual 1250             0000HZ div = 0)
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4       14.9 GiB
 mmcblk0: p1 p2 p3
dwc2 ffb40000.usb: DWC OTG Controller
dwc2 ffb40000.usb: new USB bus registered, assigned bus number 1
dwc2 ffb40000.usb: irq 160, io mem 0x00000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller
usb usb1: Manufacturer: Linux 3.12.0-00307-g507abb4-dirty dwc2_hsotg
usb usb1: SerialNumber: ffb40000.usb
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
oprofile: using arm/armv7-ca9
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
ThumbEE CPU extension supported.
Registering SWP/SWPB emulation handler
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 340K (806ee000 - 80743000)
usb 1-1: new high-speed USB device number 2 using dwc2
INIT: version 2.88 booting
usb 1-1: New USB device found, idVendor=0424, idProduct=2512
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 2 ports detected
Starting Bootlog daemon: bootlogd.
Configuring network interfaces... eth0: device MAC address 92:af:4f:06:84:db
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, failing
Starting portmap daemon...
Sat Sep 28 04:37:00 UTC 2013
INIT: Entering runlevel: 5
Starting OpenBSD Secure Shell server: sshd
done.
Starting syslogd/klogd: done
Starting Lighttpd Web Server: lighttpd.
Starting blinking LED server
Stopping Bootlog daemon: bootlogd.
libphy: stmmac-0:01 - Link is Up - 1000/Full
stmmac: Energy-Efficient Ethernet initialized

Poky 8.0 (Yocto Project 1.3 Reference Distro) 1.3
 ttyS0

socfpga login: root
root@socfpga:~# uname -a
Linux socfpga 3.12.0-00307-g507abb4-dirty #2 SMP Mon Jan 6 19:54:56 CST 2014 armv7l GNU/Linux
root@socfpga:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 92:af:4f:06:84:db
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:592 (592.0 B)
          Interrupt:152 Base address:0x8000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@socfpga:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 0 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32             
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

processor       : 1
model name      : ARMv7 Processor rev 0 (v7l)
Features        : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32             
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

Hardware        : Altera SOCFPGA
Revision        : 0000
Serial          : 0000000000000000
root@socfpga:~# cat /proc/meminfo
MemTotal:        1031824 kB
MemFree:         1016496 kB
Buffers:             924 kB
Cached:             5220 kB
SwapCached:            0 kB
Active:             4316 kB
Inactive:           3028 kB
Active(anon):       1228 kB
Inactive(anon):       16 kB
Active(file):       3088 kB
Inactive(file):     3012 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:          1200 kB
Mapped:             1776 kB
Shmem:                44 kB
Slab:               5296 kB
SReclaimable:       1696 kB
SUnreclaim:         3600 kB
KernelStack:         368 kB
PageTables:          120 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      515912 kB
Committed_AS:      12020 kB
VmallocTotal:    1024000 kB
VmallocUsed:        1060 kB
VmallocChunk:    1018588 kB        
root@socfpga:~# free -h
             total         used         free       shared      buffers
Mem:       1031824        15396      1016428            0          924
-/+ buffers:              14472      1017352
Swap:            0            0            0
root@socfpga:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root              1007.9M    161.8M    794.9M  17% /
devtmpfs                503.7M      4.0K    503.6M   0% /dev
tmpfs                   503.8M     40.0K    503.8M   0% /var/volatile
tmpfs                   503.8M         0    503.8M   0% /media/ram
root@socfpga:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=             ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=515740k,nr_inodes=128935,mode=7             55)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /media/ram type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)

 

요즘 256MB 짜리 메모리 가지고 놀다가 1GB 보니 겁나 커보이네 -_ㅠ

망할 메모리 수급 이슈 ㅠㅠ

 

그나저나 RGB 모니터가 없어서

RGB -> HDMI 컨버터 + HDMI to USB 캡쳐 이용해서 보는데 먼가 나온다.

 

프레임 버퍼도 없는데 멀로 출력한거지?

root@socfpga:~# ls -al /dev/fb*
ls: /dev/fb*: No such file or directory
root@socfpga:~# ls -al /dev/video*
ls: /dev/video*: No such file or directory

 

root@socfpga:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1316 S    init [5]
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 SW   [kworker/0:0]
    5 root         0 SW<  [kworker/0:0H]
    6 root         0 SW   [kworker/u4:0]
    7 root         0 SW   [migration/0]
    8 root         0 SW   [rcu_bh]
    9 root         0 SW   [rcu_sched]
   10 root         0 SW   [migration/1]
   11 root         0 SW   [ksoftirqd/1]
   12 root         0 SW   [kworker/1:0]
   13 root         0 SW<  [kworker/1:0H]
   14 root         0 SW<  [khelper]
   15 root         0 SW   [kdevtmpfs]
   16 root         0 SW<  [netns]
   17 root         0 SW<  [writeback]
   18 root         0 SW<  [bioset]
   19 root         0 SW<  [kblockd]
   20 root         0 SW   [khubd]
   21 root         0 SW<  [rpciod]
   22 root         0 SW   [kworker/1:1]
   23 root         0 SW   [khungtaskd]
   24 root         0 SW   [kswapd0]
   25 root         0 SW   [fsnotify_mark]
   26 root         0 SW<  [nfsiod]
   27 root         0 SW   [kworker/u4:1]
   32 root         0 SW<  [ff705000.spi]
   35 root         0 SW<  [fff01000.spi]
   40 root         0 SW<  [kpsmoused]
   41 root         0 SW   [kworker/0:1]
   42 root         0 SW<  [dw-mci-card]
   43 root         0 SW   [mmcqd/0]
   44 root         0 SW<  [dwc2]
   45 root         0 SW<  [deferwq]
   46 root         0 SW   [kjournald]
  129 daemon    1460 S    /sbin/portmap
  148 root      3592 S    /usr/sbin/sshd
  152 root      1660 S    /sbin/syslogd -n -O /var/log/messages
  155 root      1660 S    /sbin/klogd -n
  159 root      1964 S    /usr/sbin/lighttpd -f /etc/lighttpd.conf
  164 root     10628 S    /www/pages/cgi-bin/scroll_server
  179 root      2500 S    -sh
  180 root      1564 S    /sbin/getty 38400 tty1
  193 root      1948 R    ps

 

root@socfpga:~# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      129/portmap  
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      159/lighttpd 
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      148/sshd     
tcp6       0      0 :::22                   :::*                    LISTEN      148/sshd

 

80 번 포트가 있는데 해보니 에러가 나서

 lighttpd.conf 보고 해당 경로 가서 파일 목록 보고 입력하니 정상적으로 뜬다.

 

22번 포트가 열려 있으니 ssh도 ok

 

문서 보는데 이 설정이 멀 의미하는지 찾아봐야겠다

그냥(?) 리눅스 셋팅 LXDE 셋팅

 

밑면의 실크에 따르면

MSEL[0:2] 가 BOOTSEL

MSEL[3:4]는 CLOCKSEL 이다.

'embeded > FPGA - ALTERA' 카테고리의 다른 글

DE1-SOC LXDE 부팅 완료  (0) 2026.05.02
altera cyclone V HPS BOOTSEL, CLOCKSEL  (0) 2026.04.29
nios II 단종  (0) 2026.03.22
de1-soc system builder 에서 hps 추가 후 빌드 실패  (0) 2026.03.21
fpga sdk for openCL  (0) 2026.03.18
Posted by 구차니
embeded/luckfox2026. 4. 27. 16:46

 

~/work/work/rockchip$ tree -L 1
.
├── luckfox-pico
├── luckfox_pico_rknn_example
└── rknn-toolkit2

$ export LUCKFOX_SDK_PATH=/home/minimonk/work/work/rockchip/luckfox-pico

$ cd luckfox_pico_rknn_example/

$ ./build.sh 
1) uclibc
2) glibc
Enter your choice [1-2]: 1
You selected: uclibc
你选择了: uclibc
1) luckfox_pico_retinaface_facenet    3) luckfox_pico_yolov5
2) luckfox_pico_retinaface_facenet_spidev
Enter your choice [1-3]: 2
You selected: luckfox_pico_retinaface_facenet_spidev
你选择了: luckfox_pico_retinaface_facenet_spidev
1) LUCKFOX_PICO_PLUS
2) LUCKFOX_PICO_PRO_MAX
Enter your choice [1-2]: 1

~/work/work/rockchip/luckfox_pico_rknn_example$ find ./ -name model
./scripts/luckfox_onnx_to_rknn/model
./example/luckfox_pico_yolov5/model
./example/luckfox_pico_retinaface_facenet_spidev/model
./example/luckfox_pico_retinaface_facenet/model
./install/uclibc/luckfox_pico_retinaface_facenet_demo/model
./install/uclibc/luckfox_pico_retinaface_facenet_spidev_plus_demo/model
./install/uclibc/luckfox_pico_yolov5_demo/model
./install/uclibc/luckfox_pico_retinaface_facenet_spidev_pro_max_demo/model
./install/glibc/luckfox_pico_retinaface_facenet_demo/model
./install/glibc/luckfox_pico_retinaface_facenet_spidev_plus_demo/model
./install/glibc/luckfox_pico_yolov5_demo/model
./install/glibc/luckfox_pico_retinaface_facenet_spidev_pro_max_demo/model

~/work/work/rockchip/luckfox_pico_rknn_example/example/luckfox_pico_retinaface_facenet_spidev/model$ ls -al
합계 4128
drwxrwxr-x 2 minimonk minimonk    4096  4월 27 16:43 .
drwxrwxr-x 5 minimonk minimonk    4096  4월 27 16:43 ..
-rwxrwxr-x 1 minimonk minimonk  651491  4월 27 16:43 RetinaFace.rknn
-rwxrwxr-x 1 minimonk minimonk 3557710  4월 27 16:43 mobilefacenet.rknn
-rwxrwxr-x 1 minimonk minimonk    2143  4월 27 16:43 test.jpg

 

빌드해서 넣으면 인자로 여러가지 파일들을 넣으라는데, 위의 model 경로에서 복사하면 된다.

[root@luckfox root]# ./luckfox_pico_retinaface_facenet_spidev 
opencv-mobile MIPI CSI camera with v4l2 rkaiq
opencv-mobile HW JPG encoder with rk mpp
./luckfox_pico_retinaface_facenet_spidev <retinaface model_path> <facenet model_path> <reference pic_path>

 

LCD가 없으니 확인을 못하겠다 -_-

[root@luckfox root]# ./luckfox_pico_retinaface_facenet_spidev RetinaFace.rknn mobilefacenet.rknn test.jpg
opencv-mobile MIPI CSI camera with v4l2 rkaiq
opencv-mobile HW JPG encoder with rk mpp
Stop Application ...
killall: rkipc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
Screen OFF!
init retinaface
init facenet
Retinaface Info
model input num: 1, output num: 3
input tensors:
  index=0, name=input.1, n_dims=4, dims=[1, 640, 640, 3], n_elems=1228800, size=1228800, fmt=NHWC, type=INT8,0
[  285.380267] venc_release 51
output tensors:
[ 2605.777774] stream_cif_mipi_id0: s_power 1, entity use_count 1
  index=0, name=515, n_dims=3, dims=[1, 16800, 4, 0], n_elems=67200, size=67200, fmt=UNDEFINED, type=INT8, qn1
  index=1, name=553, n_dims=3, dims=[1, 16800, 2, 0], n_elems=33600, size=33600, fmt=UNDEFINED, type=INT8, qn6
  index=2, name=592, n_dims=3, dims=[1, 16800, 10, 0], n_elems=168000, size=168000, fmt=UNDEFINED, type=INT8,4
input_attrs[0].size_with_stride=1228800
output mem [0] = 67200 
output mem [1] = 33600 
output mem [2] = 168000 
model is NHWC input fmt
Facenet Info
model input num: 1, output num: 1
input tensors:
  index=0, name=input.1, n_dims=4, dims=[1, 160, 160, 3], n_elems=76800, size=76800, fmt=NHWC, type=INT8, qnt2
output tensors:
  index=0, name=313, n_dims=2, dims=[1, 128, 0, 0], n_elems=128, size=128, fmt=UNDEFINED, type=INT8, qnt_type5
input_attrs[0].size_with_stride=76800
output mem [0] = 128 
Init success 
   devpath = /dev/video11
   driver = rkisp_v7
   card = rkisp_mainpath
   bus_info = platform:rkisp-vir0
   version = 20500
   capabilities = 84201000
   device_caps = 4201000
   fmt = UYVY 4:2:2  59565955
   fmt = Y/CbCr 4:2:2  3631564e
   fmt = Y/CrCb 4:2:2  3136564e
   fmt = Y/CrCb 4:2:0  3132564e
       size = 32 x 32  ~  2304 x 1296  (+8 +8)
[ 2605.912726] stream_cif_mipi_id0: open video, entity use_countt 2
   fmt = Y/CbCr 4:2:0  3231564e
[ 2605.912833] stream_cif_mipi_id1: open video, entity use_countt 1
   fmt = Y/CrCb 4:2:0 (N-C)  31324d4e
[ 2605.919858] rkisp rkisp-vir0: first params buf queue
   fmt = Y/CbCr 4:2:0 (N-C)  32314d4e
[ 2605.922766] rkisp_hw ffa00000.rkisp: set isp clk = 198000000Hz
rkaiq log level ff1
[ 2605.924587] rkcif-mipi-lvds: stream[0] start streaming
XCORE:K:rk_aiq_init_lib, ISP HW ver: 32
[ 2605.924712] rockchip-mipi-csi2 mipi0-csi2: stream on, src_sd: ec2bbf4f, sd_name:rockchip-csi2-dphy0
XCORE:K:
[ 2605.924726] rockchip-mipi-csi2 mipi0-csi2: stream ON
************************** VERSION INFOS **************************
[ 2605.924777] rockchip-csi2-dphy0: dphy0, data_rate_mbps 510
version release date: 2024-2-18
[ 2605.924811] rockchip-csi2-dphy csi2-dphy0: csi2_dphy_s_stream stream on:1, dphy0, ret 0
         AIQ:       AIQ v5.0x5.0

git logs:
25bd14e RV1106: smart_door: release rga/isp/mpp for V1.3.0
99d080a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.2
6458e2a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.1
e8dab39 RV1106: CVR: release rga/isp/mpp for V1.1.0
a021b32 RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.0

************************ VERSION INFOS END ************************

XCORE:K:rk_aiq_uapi_sysctl_preInit_scene: main_scene: normal, sub_scene: day
XCORE:E:invalid main scene len!

IPCSERVER:K:cid[0] Process path:/tmp/UNIX.domain0, sockfd:26
XCORE:K:cid[0] rk_aiq_uapi_sysctl_init success. iq:/oem/usr/share/iqfiles/sc3336_CMK-OT2119-PC1_30IRC-F16.json
XCORE:K:cid[0] rk_aiq_uapi_sysctl_prepare success. mode:0 
/dev/video11 does not support changing fps
rga_api version 1.10.1_[0]
CAMHW:K:cid[0] start success. isGroup:0, isOnline:1, isMultiIsp:0, init_ens:0x1bfc0ffc4739
XCORE:K:cid[0] rk_aiq_uapi_sysctl_start success.
CAMHW:K:camId:0, notify_isp_stream_status on

 

[링크 : https://github.com/LuckfoxTECH/luckfox_pico_rknn_example.git]

  [링크 : https://wiki.luckfox.com/Luckfox-Pico-Ultra/RKNN]

  [링크 : https://github.com/LuckfoxTECH/luckfox-pico]

 

rtsp로 전송

~/work/work/rockchip/luckfox_pico_rkmpi_example$ ./build.sh 
1) uclibc
2) glibc
Enter your choice [1-2]: 1
You selected: uclibc
你选择了: uclibc
1) luckfox_pico_rtsp_opencv      4) luckfox_pico_rtsp_retinaface_osd
2) luckfox_pico_rtsp_opencv_capture  5) luckfox_pico_rtsp_yolov5
3) luckfox_pico_rtsp_retinaface
Enter your choice [1-5]: 3

 

아놔.. 파일명도 달라지고 경로는 고정이고! 너무하네!

[root@luckfox root]# ./luckfox_pico_rtsp_retinaface
Stop Application ...
killall: rkipc: no process killed
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
E RKNN: failed to open model: ./model/retinaface.rknn
rknn_init fail! ret=-1

 

아무튼 실행하면 vlc 통해서 300msec 정도 버퍼링은 해주어야 정상적으로 나온다.

100msec 하면 첫 프레임만 뜨고 그 이후로 멈춰버리는 듯.

[root@luckfox root]# ./luckfox_pico_rtsp_retinaface
Stop Application ...
killall: rkipc: no process killed
killall: udhcpc: no process killed
rkipc exit
ls: /oem/usr/etc/init.d/S??*: No such file or directory
model input num: 1, output num: 3
input tensors:
  index=0, name=input.1, n_dims=4, dims=[1, 640, 640, 3], n_elems=1228800, size=1228800, fmt=NHWC, type=INT8, qnt_type=AFFINE, zp=-128, scale=1.000000
output tensors:
  index=0, name=515, n_dims=3, dims=[1, 16800, 4, 0], n_elems=67200, size=67200, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-125, scale=1.951411
  index=1, name=553, n_dims=3, dims=[1, 16800, 2, 0], n_elems=33600, size=33600, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-2, scale=0.243586
  index=2, name=592, n_dims=3, dims=[1, 16800, 10, 0], n_elems=168000, size=168000, fmt=UNDEFINED, type=INT8, qnt_type=AFFINE, zp=-119, scale=1.485194
input_attrs[0].size_with_stride=1228800
output mem [0] = 67200 
output mem [1] = 33600 
output mem [2] = 168000 
model is NHWC input fmt
model input height=640, width=640, channel=3
Create Pool success !
rkaiq log level ff1
XCORE:K:rk_aiq_init_lib, ISP HW ver: 32
XCORE:K:
************************** VERSION INFOS **************************
version release date: 2024-2-18
         AIQ:       AIQ v5.0x5.0

git logs:
25bd14e RV1106: smart_door: release rga/isp/mpp for V1.3.0
99d080a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.2
6458e2a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.1
e8dab39 RV1106: CVR: release rga/isp/mpp for V1.1.0
a021b32 RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.0

************************ VERSION INFOS END ************************

ID: 0, sensor_name is m00_b_sc3336 4-0030, iqfiles is /etc/iqfiles
XCORE:K:rk_aiq_uapi_sysctl_preInit_devBufCnt: dev_ent:rkraw_rx, buf_cnt:2
XCORE:E:invalid main scene len!

IPCSERVER:K:cid[0] Process path:/tmp/UNIX.domain0, sockfd:22
XCORE:K:cid[0] rk_aiq_uapi_sysctl_init success. iq:/etc/iqfiles/sc3336_CMK-OT2119-PC1_30IRC-F16.json
XCORE:K:cid[0] rk_aiq_uapi_sysctl_prepare success. mode:0 
rk_aiq_uapi2_sysctl_init/prepare succeed
CAMHW:K:cid[0] start success. isGroup:0, isOnline:1, isMultiIsp:0, init_ens:0x1bfc0ffc4739
XCORE:K:cid[0] rk_aiq_uapi_sysctl_start success.
rk_aiq_uapi2_sysctl_start succeed
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
log_file = (nil) 
RTVersion        16:42:27-552 {dump              :064} ---------------------------------------------------------
RTVersion        16:42:27-553 {dump              :065} rockit version: git-4720dc10a Tue Apr 30 15:47:55 2024 +0800
RTVersion        16:42:27-554 {dump              :066} rockit building: built- 2024-04-30 15:53:43
RTVersion        16:42:27-555 {dump              :067} ---------------------------------------------------------
(null)           16:42:27-555 {log_level_init    :207} 

 please use echo name=level > /tmp/rt_log_level set log level 
name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
log_level: 0 1 2 3 4 5 6 

rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null)           16:42:27-555 {read_log_level    :098} text is all=4
(null)           16:42:27-556 {read_log_level    :100} module is all, log_level is 4
[INFO  rtsp_demo.c:280:rtsp_new_demo] rtsp server demo starting on port 554
(null)           16:42:27-561 {monitor_log_level :149} #Start monitor_log_level thread, arg:(nil)
[DEBUG rtsp_demo.c:480:rtsp_new_session] add session path: /live/0
rtsp streamq_alloc size is 1753484
vi_dev_init
RKViDev          16:42:27-563 {vi_set_dev_attr   :612} VI_DEV_ATTR_S all parameter reserved
RTIsp3x          16:42:27-565 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceSensorV4 16:42:27-567 {ispOpenDevice     :502} v4l2_open(/dev/video0), handler=55
RTDeviceSensorV4 16:42:27-568 {ispOpenDevice     :502} v4l2_open(/dev/v4l-subdev2), handler=57
RTDeviceSensorV4 16:42:27-568 {close             :112} do RTDeviceSensorV4L2 close
RTDeviceSensorV4 16:42:27-569 {close             :112} do RTDeviceSensorV4L2 close
RKViChn          16:42:27-570 {prepareRuntime    :354} ---------------------------------------------------------
RKViChn          16:42:27-570 {prepareRuntime    :356} vi version: 1.22, name:vvi
RKViChn          16:42:27-572 {prepareRuntime    :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn          16:42:27-572 {prepareRuntime    :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn          16:42:27-573 {prepareRuntime    :359} ---------------------------------------------------------
cmpi             16:42:27-573 {prepareRuntime    :378} mb pool create success, MBCnt= 2
RTIsp3x          16:42:27-575 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
cmpi             16:42:27-576 {createRuntime     :634} >>>>>>>>> Sensor link info dump: <<<<<<<<<
cmpi             16:42:27-577 {createRuntime     :636}   vicap media name           : /dev/media0
cmpi             16:42:27-577 {createRuntime     :637}   vicap model name           : rkcif-mipi-lvds
cmpi             16:42:27-577 {createRuntime     :638}   camera id                  : 0
cmpi             16:42:27-578 {createRuntime     :639}   sensor name                : m00_b_sc3336 4-0030
cmpi             16:42:27-578 {createRuntime     :641}   stream_cif_mipi_id0 video name: /dev/video0
cmpi             16:42:27-578 {createRuntime     :642}   stream_cif_mipi_id1 video name: /dev/video1
cmpi             16:42:27-578 {createRuntime     :643}   stream_cif_mipi_id2 video name: /dev/video2
cmpi             16:42:27-579 {createRuntime     :644}   stream_cif_mipi_id3 video name: /dev/video3
cmpi             16:42:27-580 {createRuntime     :646}   sensor raw width           : 2304
cmpi             16:42:27-580 {createRuntime     :647}   sensor raw height          : 1296
cmpi             16:42:27-580 {createRuntime     :648} ---------------------------------------------------------
cmpi             16:42:27-580 {createRuntime     :654}   isp media name           : /dev/media1
cmpi             16:42:27-580 {createRuntime     :655}   isp model name           : rkisp0
cmpi             16:42:27-581 {createRuntime     :656}   isp driver name          : rkisp-vir0
cmpi             16:42:27-581 {createRuntime     :657}   isp dev name             : /dev/v4l-subdev3
cmpi             16:42:27-581 {createRuntime     :659}   isp rawrd0_m_path        : /dev/video17
cmpi             16:42:27-581 {createRuntime     :660}   isp rawrd1_l_path        : 
cmpi             16:42:27-582 {createRuntime     :661}   isp rawrd2_s_path        : /dev/video18
cmpi             16:42:27-582 {createRuntime     :664}   mainpath video name      : /dev/video11
cmpi             16:42:27-582 {createRuntime     :665}   selfpath video name      : /dev/video12
cmpi             16:42:27-582 {createRuntime     :666}   bypasspath video name    : /dev/video13
cmpi             16:42:27-582 {createRuntime     :667}   sensor link type         : 2
cmpi             16:42:27-582 {createRuntime     :668}   sensor is united         : 0
cmpi             16:42:27-583 {createRuntime     :672} ---------------------------------------------------------
cmpi             16:42:27-583 {createRuntime     :711} [non-WRAP MODE]: buff size = 518400
RTIsp3x          16:42:27-586 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2     16:42:27-587 {open              :137} cameraIndex:0, entityName:rkisp_mainpath
RTDeviceV4L2     16:42:27-588 {open              :143} open video name(/dev/video11)
RKViChn          16:42:27-589 {setFrameRate      :1469} [vi] dev(0) ch(0) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     16:42:27-590 {ispCameraInfo     :567} current device:/dev/video11 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     16:42:27-590 {ispInitFormat     :767} ioctl VIDIOC_S_FMT OK
cmpi             16:42:27-590 {start             :1093} =========== vi Start startRuntime ===========
RTDeviceV4L2     16:42:27-591 {ispStreamOn       :458} do ispStreamOn start
CAMHW:K:camId:0, notify_isp_stream_status on
RTDeviceV4L2     16:42:27-616 {ispStreamOn       :511} do ispStreamOn done
venc_init
MpiAdapterEncode 16:42:27-617 {ma_encode_create  :1743} ringbuf buf_size 520192
=== 0 ===
MpiAdapterEncode 16:42:27-621 {ma_encode_create  :1782} mem_fd = 61
init success
cmpi             16:42:27-652 {mb_get_buffer_by_i:433} allocated buffer(this=0x3cd938, data=(nil), size=0, id=-1)
cmpi             16:42:27-653 {getFrameRuntime   :1347} -------------------------------vviBuf->buf_size: 520192
=== 1 ===
MpiAdapterEncode 16:42:27-743 {ma_encode_get_pack:2079} map ptr: 0xa44ee000, fd 63
[DEBUG utils.c:134:rtsp_codec_data_parse_from_user_h264] sps 29
[DEBUG utils.c:142:rtsp_codec_data_parse_from_user_h264] pps 4
cmpi             16:42:27-745 {mb_get_buffer_by_i:433} allocated buffer(this=0x4fc440, data=(nil), size=0, id=-1)
cmpi             16:42:27-745 {getFrameRuntime   :1347} -------------------------------vviBuf->buf_size: 520192

 

facenet만으로 얼굴 영역만 탐지. 1TOPS라 그런가 제법 빠르게 반응하는 느낌

 

CPU는 대충 65% 정도.. rtsp 부하인가?

 

[링크 : https://wiki.luckfox.com/Luckfox-Pico-Ultra/MPI/]

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

luckfox 카메라 모션 디텍트 끄기  (0) 2026.04.27
luckfox rv1106 riscv  (0) 2026.04.24
luckfox rv1106 rockchip RNN  (0) 2026.04.24
luckfox csi 카메라 테스트  (0) 2026.04.23
luckfox pico ultra W 켜봄  (0) 2026.04.22
Posted by 구차니
embeded/luckfox2026. 4. 27. 16:38

카메라 달아놓고 csi 활성화 해두고 리부팅 하면

이런 MD 라는 메시지가 뜨는데 카메라 앞에서 손을 흔들거나 하면 뜬다.

[video.c][rkipc_ivs_get_results]:MD: md_area is 492544, md_area_threshold is 155520
[video.c][rkipc_ivs_get_results]:MD: md_area is 183296, md_area_threshold is 155520

 

일단 rkipc 라는 녀석을 죽이니 vlc 접속은 되는데 영상을 못받아 오는것 같다.

# ps -ef  | grep rkipc
root      458    1  8 15:20 ?        00:00:47 rkipc -a /oem/usr/share/iqfiles
root     3666 1294  0 15:30 ttyFIQ0  00:00:00 grep rkipc

# ls -al /oem/usr/share/iqfiles
total 25804
drwxrwxr-x   11 1005     1005          4096 Jun  9  2025 .
drwxrwxr-x    5 1005     1005          4096 Jun  7  2025 ..
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_os04a10_2CD3T47F(D)WDA3_40IRC-F10
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc200ai_CMK-OT2115-PC1_30IRC-F16
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc3336_CMK-OT2119-PC1_30IRC-F16
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc4336_CMK-OT01_40IRC-F16
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc4336_CMK-OT2117-PC1_30IRC-F16
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc4336_OT01_40IRC_F16
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc500ai_CMK-OT1607-FV1_40IRC-F16
drwxrwxr-x    2 1005     1005          4096 May 20  2025 CAC_sc530ai_CMK-OT2115-PC1_30IRC-F16
-rwxrwxr-x    1 1005     1005        287652 May 20  2025 FakeCamera0.bin
-rw-rw-r--    1 1005     1005        980987 May 20  2025 FakeCamera0.json
drwxrwxr-x    2 1005     1005          4096 Jun  9  2025 ainr
-rwxrwxr-x    1 1005     1005        148196 May 20  2025 gc1084_SV-SMSM50S_80IR-F20.bin
-rw-rw-r--    1 1005     1005        358690 May 20  2025 gc1084_SV-SMSM50S_80IR-F20.json
-rwxrwxr-x    1 1005     1005        269616 May 20  2025 gc2053_CMK-OT2274-V10_28IRC-F20.bin
-rw-rw-r--    1 1005     1005        868999 May 20  2025 gc2053_CMK-OT2274-V10_28IRC-F20.json
-rwxrwxr-x    1 1005     1005        267792 May 20  2025 gc2093_SIDA209300461_60IRC_F20.bin
-rw-rw-r--    1 1005     1005        867815 May 20  2025 gc2093_SIDA209300461_60IRC_F20.json
-rwxrwxr-x    1 1005     1005        180472 May 20  2025 gc4023_CMK-OT2117-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        457670 May 20  2025 gc4023_CMK-OT2117-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        259036 May 20  2025 gc4653_CMK-OT2117-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        840723 May 20  2025 gc4653_CMK-OT2117-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        166884 May 20  2025 gc4653_YT10120_30IRC-4M-F20.bin
-rw-rw-r--    1 1005     1005        444982 May 20  2025 gc4653_YT10120_30IRC-4M-F20.json
-rwxrwxr-x    1 1005     1005        194540 May 20  2025 imx415_CMK-OT2022-PX1_IR0147-36IRC-8M-F20.bin
-rw-rw-r--    1 1005     1005        451241 May 20  2025 imx415_CMK-OT2022-PX1_IR0147-36IRC-8M-F20.json
-rwxrwxr-x    1 1005     1005        288552 May 20  2025 jx_k17_T3801-A_22IRC-5M-F18.bin
-rw-rw-r--    1 1005     1005        939673 May 20  2025 jx_k17_T3801-A_22IRC-5M-F18.json
-rwxrwxr-x    1 1005     1005        181168 May 20  2025 mis2032_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        456614 May 20  2025 mis2032_CMK-OT2115-PC1_30IRC-F16.json
-rw-rw-r--    1 1005     1005        451183 May 20  2025 mis5001_CMK-OT2115-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        291372 May 20  2025 os02h10_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        887689 May 20  2025 os02h10_CMK-OT2115-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        290644 May 20  2025 os02k10_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        881264 May 20  2025 os02k10_CMK-OT2115-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        250068 May 20  2025 os04a10_2CD3T47FDWDA3_40IRC-F10.bin
-rw-rw-r--    1 1005     1005        864066 May 20  2025 os04a10_2CD3T47FDWDA3_40IRC-F10.json
-rwxrwxr-x    1 1005     1005        249620 May 20  2025 os04a10_CMK-OT1607-PV1_50IRC-F16.bin
-rw-rw-r--    1 1005     1005        860090 May 20  2025 os04a10_CMK-OT1607-PV1_50IRC-F16.json
-rwxrwxr-x    1 1005     1005        173420 May 20  2025 sc031gs_CMK-HRG537A5-H211_12IR-F24.bin
-rw-rw-r--    1 1005     1005        434438 May 20  2025 sc031gs_CMK-HRG537A5-H211_12IR-F24.json
-rwxrwxr-x    1 1005     1005        279172 May 20  2025 sc200ai_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        879334 May 20  2025 sc200ai_CMK-OT2115-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        277956 May 20  2025 sc230ai_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        882050 May 20  2025 sc230ai_CMK-OT2115-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        277956 May 20  2025 sc230ai_CMK-OT2350-PC1_65IRC-F16.bin
-rw-rw-r--    1 1005     1005        881996 May 20  2025 sc230ai_CMK-OT2350-PC1_65IRC-F16.json
-rwxrwxr-x    1 1005     1005        279972 May 20  2025 sc231hai_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        888559 May 20  2025 sc231hai_CMK-OT2115-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        279172 May 20  2025 sc301iot_CMK-OT2349-PC1_65IRC-F20.bin
-rw-rw-r--    1 1005     1005        878962 May 20  2025 sc301iot_CMK-OT2349-PC1_65IRC-F20.json
-rwxrwxr-x    1 1005     1005        171728 May 20  2025 sc3336_CMK-OT2119-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        432259 May 20  2025 sc3336_CMK-OT2119-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        235828 May 20  2025 sc3338_FKO1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        774078 May 20  2025 sc3338_FKO1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        181808 May 20  2025 sc401ai_CMK-OT2117-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        460538 May 20  2025 sc401ai_CMK-OT2117-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        149968 May 20  2025 sc4336_CMK-OT2117-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        362699 May 20  2025 sc4336_CMK-OT2117-PC1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        221500 May 20  2025 sc4336_OT01_40IRC_F16.bin
-rw-rw-r--    1 1005     1005        617817 May 20  2025 sc4336_OT01_40IRC_F16.json
-rwxrwxr-x    1 1005     1005        297964 May 20  2025 sc500ai_CMK-OT1607-FV1_40IRC-F16.bin
-rw-rw-r--    1 1005     1005       1083295 May 20  2025 sc500ai_CMK-OT1607-FV1_40IRC-F16.json
-rwxrwxr-x    1 1005     1005        231996 May 20  2025 sc501ai_FKO1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        864644 May 20  2025 sc501ai_FKO1_30IRC-F16.json
-rwxrwxr-x    1 1005     1005        230180 May 20  2025 sc530ai_CMK-OT2115-PC1_30IRC-F16.bin
-rw-rw-r--    1 1005     1005        863030 May 20  2025 sc530ai_CMK-OT2115-PC1_30IRC-F16.json

 

음.. 이래서 다시 기동해도 rtsp는 정상작동하지 않는거였나?

# rkipc -a /oem/usr/share/iqfiles
[common.c][rkipc_version_dump]:rkipc version: unknown rkipc version for missing VCS info
[common.c][rkipc_version_dump]:rkipc info: unknown rkipc build info
[common.c][rkipc_version_dump]:rkipc type: COMPILE_FOR_RV1106_IPC
[rkipc.c][main]:rkipc_ini_path_ is (null), rkipc_iq_file_path_ is /oem/usr/share/iqfiles, rkipc_log_level is 2
[param.c][rk_param_init]:g_ini_path_ is /userdata/rkipc.ini
[isp.c][rk_isp_init]:g_iq_file_dir_ is /oem/usr/share/iqfiles
[isp.c][rk_isp_init]:cam_id is 0, hdr_mode is close, scenario is normal
rkaiq log level ff1
[network.c][ntp_client_thread]:refresh_time_s is 60, ntp_server is 119.28.183.184
[network.c][rk_net_proc]:Creat rk_net_proc thread!
XCORE:K:rk_aiq_init_lib, ISP HW ver: 32
XCORE:K:
************************** VERSION INFOS **************************
version release date: 2024-2-18
         AIQ:       AIQ v5.0x5.0

git logs:
25bd14e RV1106: smart_door: release rga/isp/mpp for V1.3.0
99d080a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.2
6458e2a RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.1
e8dab39 RV1106: CVR: release rga/isp/mpp for V1.1.0
a021b32 RV1106/RV1103: Battery/Doorbell: release kmpp/rockit-ko for V1.3.0

************************ VERSION INFOS END ************************

[isp.c][sample_common_isp_init]:ID: 0, sensor_name is m00_b_sc3336 4-0030, iqfiles is /oem/usr/share/iqfiles
XCORE:K:rk_aiq_uapi_sysctl_preInit_devBufCnt: dev_ent:rkraw_rx, buf_cnt:2
[isp.c][sample_common_isp_init]:main_scene is normal, sub_scene is day
[isp.c][sample_common_isp_init]:15:32:56.333948: rk_aiq_uapi2_sysctl_preInit_scene begin
XCORE:K:rk_aiq_uapi_sysctl_preInit_scene: main_scene: normal, sub_scene: day
[isp.c][sample_common_isp_init]:15:32:56.334514: rk_aiq_uapi2_sysctl_preInit_scene over
XCORE:E:invalid main scene len!

IPCSERVER:K:cid[0] Process path:/tmp/UNIX.domain0, sockfd:14
XCORE:K:cid[0] rk_aiq_uapi_sysctl_init success. iq:/oem/usr/share/iqfiles/sc3336_CMK-OT2119-PC1_30IRC-F16.json
[isp.c][sample_common_isp_init]:15:32:56.477866: rk_aiq_uapi2_sysctl_init over
XCORE:K:cid[0] rk_aiq_uapi_sysctl_prepare success. mode:0 
[isp.c][sample_common_isp_run]:15:32:56.485777: rk_aiq_uapi2_sysctl_prepare succeed
CAMHW:K:cid[0] start success. isGroup:0, isOnline:1, isMultiIsp:0, init_ens:0x1bfc0ffc4739
XCORE:K:cid[0] rk_aiq_uapi_sysctl_start success.
[isp.c][sample_common_isp_run]:15:32:56.489521: rk_aiq_uapi2_sysctl_start succeed
Possible failure in int write 0 to /sys/class/gpio/gpio36/value
failed to open /sys/class/pwm/pwmchip3/export
[isp.c][rk_isp_set_light_strength]:pwm3 init failed -2
[isp.c][rk_isp_set_blc_strength]:blc mode is not enabled
[isp.c][rk_isp_set_hlc_level]:hlc mode is not enabled
[isp.c][rk_isp_set_white_blance_red]:white blance is auto, not support set gain
[isp.c][rk_isp_set_white_blance_green]:white blance is auto, not support set gain
[isp.c][rk_isp_set_white_blance_blue]:white blance is auto, not support set gain
ALDCH:E:uapi want to disalbe ldch, but ldch has been disalbed!
ALDCH:E:uapi want to disalbe ldch, but ldch has been disalbed!
rockit log path (null), log_size = 0, can use export rt_log_path=, export rt_log_size= change
log_file = (nil) 
RTVersion        15:32:56-607 {dump              :064} ---------------------------------------------------------
RTVersion        15:32:56-608 {dump              :065} rockit version: git-4720dc10a Tue Apr 30 15:47:55 2024 +0800
RTVersion        15:32:56-608 {dump              :066} rockit building: built- 2024-04-30 15:53:43
RTVersion        15:32:56-608 {dump              :067} ---------------------------------------------------------
(null)           15:32:56-609 {log_level_init    :207} 

 please use echo name=level > /tmp/rt_log_level set log level 
name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
log_level: 0 1 2 3 4 5 6 

rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null)           15:32:56-609 {read_log_level    :098} text is all=4
(null)           15:32:56-609 {read_log_level    :100} module is all, log_level is 4
RKSockServer     15:32:56-610 {initNetServer     :088} bind failed, reason: Address already in use
[video.c][rk_video_init]:enable_jpeg is 1, enable_venc_0 is 1, enable_venc_1 is 1, enable_rtsp is 1, enable_rtmp is 0
(null)           15:32:56-614 {monitor_log_level :149} #Start monitor_log_level thread, arg:(nil)
RKViDev          15:32:56-617 {vi_set_dev_attr   :612} VI_DEV_ATTR_S all parameter reserved
RTIsp3x          15:32:56-619 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceSensorV4 15:32:56-622 {ispOpenDevice     :502} v4l2_open(/dev/video0), handler=45
RTDeviceSensorV4 15:32:56-623 {ispOpenDevice     :502} v4l2_open(/dev/v4l-subdev2), handler=47
RTDeviceSensorV4 15:32:56-623 {close             :112} do RTDeviceSensorV4L2 close
RTDeviceSensorV4 15:32:56-624 {close             :112} do RTDeviceSensorV4L2 close
[ERROR rtsp_demo.c:264:rtsp_new_demo] bind socket to address failed : Address already in use
[ERROR rtsp_demo.c:460:rtsp_new_session] param invalid
[ERROR rtsp_demo.c:460:rtsp_new_session] param invalid
RKViChn          15:32:56-630 {prepareRuntime    :354} ---------------------------------------------------------
RKViChn          15:32:56-630 {prepareRuntime    :356} vi version: 1.22, name:vvi
RKViChn          15:32:56-631 {prepareRuntime    :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn          15:32:56-631 {prepareRuntime    :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn          15:32:56-631 {prepareRuntime    :359} ---------------------------------------------------------
cmpi             15:32:56-632 {prepareRuntime    :378} mb pool create success, MBCnt= 2
RTIsp3x          15:32:56-633 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
cmpi             15:32:56-636 {createRuntime     :634} >>>>>>>>> Sensor link info dump: <<<<<<<<<
cmpi             15:32:56-636 {createRuntime     :636}   vicap media name           : /dev/media0
cmpi             15:32:56-637 {createRuntime     :637}   vicap model name           : rkcif-mipi-lvds
cmpi             15:32:56-637 {createRuntime     :638}   camera id                  : 0
cmpi             15:32:56-638 {createRuntime     :639}   sensor name                : m00_b_sc3336 4-0030
cmpi             15:32:56-638 {createRuntime     :641}   stream_cif_mipi_id0 video name: /dev/video0
cmpi             15:32:56-638 {createRuntime     :642}   stream_cif_mipi_id1 video name: /dev/video1
cmpi             15:32:56-638 {createRuntime     :643}   stream_cif_mipi_id2 video name: /dev/video2
cmpi             15:32:56-639 {createRuntime     :644}   stream_cif_mipi_id3 video name: /dev/video3
cmpi             15:32:56-639 {createRuntime     :646}   sensor raw width           : 2304
cmpi             15:32:56-639 {createRuntime     :647}   sensor raw height          : 1296
cmpi             15:32:56-639 {createRuntime     :648} ---------------------------------------------------------
cmpi             15:32:56-639 {createRuntime     :654}   isp media name           : /dev/media1
cmpi             15:32:56-639 {createRuntime     :655}   isp model name           : rkisp0
cmpi             15:32:56-639 {createRuntime     :656}   isp driver name          : rkisp-vir0
cmpi             15:32:56-639 {createRuntime     :657}   isp dev name             : /dev/v4l-subdev3
cmpi             15:32:56-640 {createRuntime     :659}   isp rawrd0_m_path        : /dev/video17
cmpi             15:32:56-640 {createRuntime     :660}   isp rawrd1_l_path        : 
cmpi             15:32:56-640 {createRuntime     :661}   isp rawrd2_s_path        : /dev/video18
cmpi             15:32:56-640 {createRuntime     :664}   mainpath video name      : /dev/video11
cmpi             15:32:56-640 {createRuntime     :665}   selfpath video name      : /dev/video12
cmpi             15:32:56-640 {createRuntime     :666}   bypasspath video name    : /dev/video13
cmpi             15:32:56-640 {createRuntime     :667}   sensor link type         : 2
cmpi             15:32:56-641 {createRuntime     :668}   sensor is united         : 0
cmpi             15:32:56-641 {createRuntime     :672} ---------------------------------------------------------
cmpi             15:32:56-641 {createRuntime     :711} [non-WRAP MODE]: buff size = 4478976
RTIsp3x          15:32:56-650 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2     15:32:56-652 {open              :137} cameraIndex:0, entityName:rkisp_mainpath
RTDeviceV4L2     15:32:56-653 {open              :143} open video name(/dev/video11)
RKViChn          15:32:56-654 {setFrameRate      :1469} [vi] dev(0) ch(0) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     15:32:56-656 {ispCameraInfo     :567} current device:/dev/video11 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     15:32:56-657 {ispInitFormat     :767} ioctl VIDIOC_S_FMT OK
cmpi             15:32:56-658 {start             :1093} =========== vi Start startRuntime ===========
RTDeviceV4L2     15:32:56-659 {ispStreamOn       :458} do ispStreamOn start
CAMHW:K:camId:0, notify_isp_stream_status on
RTDeviceV4L2     15:32:56-678 {ispStreamOn       :511} do ispStreamOn done
[video.c][rk_video_set_frame_rate]:num is 25, den is 1
[video.c][rk_video_set_frame_rate]:old VI framerate is [-1:-1]
[video.c][rk_video_set_frame_rate]:new VI framerate is [25:25]
RKVencChannel    15:32:56-686 {setH265CuDqp      :4003} pstCuDqp illegal param: u32CuDqp -6(expects range [0, 2])
MpiAdapterEncode 15:32:56-687 {ma_encode_create  :1743} ringbuf buf_size 1495040
MpiAdapterEncode 15:32:56-695 {ma_encode_create  :1782} mem_fd = 52
RKViChn          15:32:56-698 {prepareRuntime    :354} ---------------------------------------------------------
RKViChn          15:32:56-699 {prepareRuntime    :356} vi version: 1.22, name:vvi
RKViChn          15:32:56-700 {prepareRuntime    :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn          15:32:56-700 {prepareRuntime    :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn          15:32:56-701 {prepareRuntime    :359} ---------------------------------------------------------
cmpi             15:32:56-701 {prepareRuntime    :378} mb pool create success, MBCnt= 2
RTIsp3x          15:32:56-703 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
cmpi             15:32:56-708 {createRuntime     :634} >>>>>>>>> Sensor link info dump: <<<<<<<<<
cmpi             15:32:56-709 {createRuntime     :636}   vicap media name           : /dev/media0
cmpi             15:32:56-709 {createRuntime     :637}   vicap model name           : rkcif-mipi-lvds
cmpi             15:32:56-710 {createRuntime     :638}   camera id                  : 0
cmpi             15:32:56-710 {createRuntime     :639}   sensor name                : m00_b_sc3336 4-0030
cmpi             15:32:56-711 {createRuntime     :641}   stream_cif_mipi_id0 video name: /dev/video0
cmpi             15:32:56-711 {createRuntime     :642}   stream_cif_mipi_id1 video name: /dev/video1
cmpi             15:32:56-712 {createRuntime     :643}   stream_cif_mipi_id2 video name: /dev/video2
cmpi             15:32:56-712 {createRuntime     :644}   stream_cif_mipi_id3 video name: /dev/video3
cmpi             15:32:56-713 {createRuntime     :646}   sensor raw width           : 2304
cmpi             15:32:56-713 {createRuntime     :647}   sensor raw height          : 1296
cmpi             15:32:56-720 {createRuntime     :648} ---------------------------------------------------------
cmpi             15:32:56-720 {createRuntime     :654}   isp media name           : /dev/media1
cmpi             15:32:56-720 {createRuntime     :655}   isp model name           : rkisp0
cmpi             15:32:56-720 {createRuntime     :656}   isp driver name          : rkisp-vir0
cmpi             15:32:56-720 {createRuntime     :657}   isp dev name             : /dev/v4l-subdev3
cmpi             15:32:56-720 {createRuntime     :659}   isp rawrd0_m_path        : /dev/video17
cmpi             15:32:56-720 {createRuntime     :660}   isp rawrd1_l_path        : 
cmpi             15:32:56-721 {createRuntime     :661}   isp rawrd2_s_path        : /dev/video18
cmpi             15:32:56-721 {createRuntime     :664}   mainpath video name      : /dev/video11
cmpi             15:32:56-721 {createRuntime     :665}   selfpath video name      : /dev/video12
cmpi             15:32:56-721 {createRuntime     :666}   bypasspath video name    : /dev/video13
cmpi             15:32:56-721 {createRuntime     :667}   sensor link type         : 2
cmpi             15:32:56-721 {createRuntime     :668}   sensor is united         : 0
cmpi             15:32:56-722 {createRuntime     :672} ---------------------------------------------------------
cmpi             15:32:56-722 {createRuntime     :711} [non-WRAP MODE]: buff size = 608256
RTIsp3x          15:32:56-726 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2     15:32:56-728 {open              :137} cameraIndex:0, entityName:rkisp_selfpath
RTDeviceV4L2     15:32:56-730 {open              :143} open video name(/dev/video12)
MpiAdapterEncode 15:32:56-731 {ma_encode_get_pack:2079} map ptr: 0xa45a5000, fd 55
RKViChn          15:32:56-732 {setFrameRate      :1469} [vi] dev(0) ch(1) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     15:32:56-735 {ispCameraInfo     :567} current device:/dev/video12 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     15:32:56-736 {ispInitFormat     :767} ioctl VIDIOC_S_FMT OK
cmpi             15:32:56-737 {start             :1093} =========== vi Start startRuntime ===========
RTDeviceV4L2     15:32:56-737 {ispStreamOn       :458} do ispStreamOn start
RTDeviceV4L2     15:32:56-737 {ispStreamOn       :511} do ispStreamOn done
[video.c][rk_video_set_frame_rate]:num is 30, den is 1
[video.c][rk_video_set_frame_rate]:old VI framerate is [-1:-1]
[video.c][rk_video_set_frame_rate]:new VI framerate is [25:30]
RKViChn          15:32:56-740 {setFrameRate      :1469} [vi] dev(0) ch(1) illegal param s32SrcFrameRate(25) s32DstFrameRate(30)
RKVencChannel    15:32:56-741 {setH265CuDqp      :4003} pstCuDqp illegal param: u32CuDqp -6(expects range [0, 2])
MpiAdapterEncode 15:32:56-742 {ma_encode_create  :1743} ringbuf buf_size 204800
MpiAdapterEncode 15:32:56-745 {ma_encode_create  :1782} mem_fd = 59
MpiAdapterEncode 15:32:56-753 {ma_encode_create  :1743} ringbuf buf_size 1048576
MpiAdapterEncode 15:32:56-758 {ma_encode_create  :1782} mem_fd = 61
RKViChn          15:32:56-762 {prepareRuntime    :354} ---------------------------------------------------------
RKViChn          15:32:56-762 {prepareRuntime    :356} vi version: 1.22, name:vvi
RKViChn          15:32:56-763 {prepareRuntime    :357} rockit-ko version: vmpi:28ee389dbc33
RKViChn          15:32:56-764 {prepareRuntime    :358} rockit-ko building: -2024-05-24-18:15:06
RKViChn          15:32:56-770 {prepareRuntime    :359} ---------------------------------------------------------
cmpi             15:32:56-770 {prepareRuntime    :378} mb pool create success, MBCnt= 2
RTIsp3x          15:32:56-772 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
cmpi             15:32:56-776 {createRuntime     :634} >>>>>>>>> Sensor link info dump: <<<<<<<<<
cmpi             15:32:56-776 {createRuntime     :636}   vicap media name           : /dev/media0
cmpi             15:32:56-777 {createRuntime     :637}   vicap model name           : rkcif-mipi-lvds
cmpi             15:32:56-777 {createRuntime     :638}   camera id                  : 0
cmpi             15:32:56-778 {createRuntime     :639}   sensor name                : m00_b_sc3336 4-0030
cmpi             15:32:56-778 {createRuntime     :641}   stream_cif_mipi_id0 video name: /dev/video0
cmpi             15:32:56-779 {createRuntime     :642}   stream_cif_mipi_id1 video name: /dev/video1
cmpi             15:32:56-779 {createRuntime     :643}   stream_cif_mipi_id2 video name: /dev/video2
cmpi             15:32:56-779 {createRuntime     :644}   stream_cif_mipi_id3 video name: /dev/video3
cmpi             15:32:56-780 {createRuntime     :646}   sensor raw width           : 2304
cmpi             15:32:56-780 {createRuntime     :647}   sensor raw height          : 1296
MpiAdapterEncode 15:32:56-784 {ma_encode_get_pack:2079} map ptr: 0xa3afb000, fd 65
cmpi             15:32:56-786 {createRuntime     :648} ---------------------------------------------------------
cmpi             15:32:56-786 {createRuntime     :654}   isp media name           : /dev/media1
cmpi             15:32:56-786 {createRuntime     :655}   isp model name           : rkisp0
cmpi             15:32:56-786 {createRuntime     :656}   isp driver name          : rkisp-vir0
cmpi             15:32:56-787 {createRuntime     :657}   isp dev name             : /dev/v4l-subdev3
cmpi             15:32:56-787 {createRuntime     :659}   isp rawrd0_m_path        : /dev/video17
cmpi             15:32:56-787 {createRuntime     :660}   isp rawrd1_l_path        : 
cmpi             15:32:56-787 {createRuntime     :661}   isp rawrd2_s_path        : /dev/video18
cmpi             15:32:56-787 {createRuntime     :664}   mainpath video name      : /dev/video11
cmpi             15:32:56-787 {createRuntime     :665}   selfpath video name      : /dev/video12
cmpi             15:32:56-787 {createRuntime     :666}   bypasspath video name    : /dev/video13
cmpi             15:32:56-788 {createRuntime     :667}   sensor link type         : 2
cmpi             15:32:56-788 {createRuntime     :668}   sensor is united         : 0
cmpi             15:32:56-788 {createRuntime     :672} ---------------------------------------------------------
cmpi             15:32:56-788 {createRuntime     :711} [non-WRAP MODE]: buff size = 783360
RTIsp3x          15:32:56-791 {ispInitDevice     :591} sensor name = m00_b_sc3336 4-0030
RTDeviceV4L2     15:32:56-793 {open              :137} cameraIndex:0, entityName:rkisp_bypasspath
RTDeviceV4L2     15:32:56-796 {open              :143} open video name(/dev/video13)
RKViChn          15:32:56-796 {setFrameRate      :1469} [vi] dev(0) ch(2) illegal param s32SrcFrameRate(0) s32DstFrameRate(0)
RTDeviceV4L2     15:32:56-798 {ispCameraInfo     :567} current device:/dev/video13 isn't compatible(cap:0x84201000) device,memoryType:4, retry:0
RTDeviceV4L2     15:32:56-800 {ispInitFormat     :767} ioctl VIDIOC_S_FMT OK
cmpi             15:32:56-800 {start             :1093} =========== vi Start startRuntime ===========
RTDeviceV4L2     15:32:56-800 {ispStreamOn       :458} do ispStreamOn start
RTDeviceV4L2     15:32:56-801 {ispStreamOn       :511} do ispStreamOn done
[storage.c][rkipc_storage_set_dev_attr]:mount path is /userdata, dev_path is /dev/block/by-name/userdata
[storage.c][rkipc_storage_para_init]:DevAttr set:  AutoDel--1, FreeSizeDel--500~1000, Path--/userdata/video0, Limit--300
[storage.c][rkipc_storage_para_init]:DevAttr set:  AutoDel--1, FreeSizeDel--500~1000, Path--/userdata/video1, Limit--300
[storage.c][rkipc_storage_para_init]:DevAttr set:  AutoDel--1, FreeSizeDel--500~1000, Path--/userdata/video2, Limit--300
[storage.c][rkipc_storage_auto_delete_init]:mountpath:/userdata,devpath:,devtype:,devattr:
[server.c][rkipc_server_thread]:#Start rkipc_server_thread thread, arg:(nil)
#Start osd_time_server thread, arg:(nil)
[osd.c][osd_time_server]:osd_time_id is 1
[osd.c][osd_time_server]:osd_data.text.font_color is fff799
[osd.c][osd_time_server]:osd_data.text.format is 24hour CHR-YYYY-MM-DD
[storage.c][rkipc_storage_file_scan_thread]:/userdata, /dev/block/by-name/userdata, ext4, rw,relatime
[storage.c][rkipc_storage_file_scan_thread]:[15:32:56.825167] i is 0, before rkipc_storage_read_file_list
[storage.c][rkipc_storage_file_scan_thread]:[15:32:56.826428] i is 0, after rkipc_storage_read_file_list
[storage.c][rkipc_storage_file_scan_thread]:[15:32:56.827605] i is 1, before rkipc_storage_read_file_list
[storage.c][rkipc_storage_file_scan_thread]:[15:32:56.827953] i is 1, after rkipc_storage_read_file_list
[storage.c][rkipc_storage_file_scan_thread]:[15:32:56.828565] i is 2, before rkipc_storage_read_file_list
[storage.c][rkipc_storage_file_scan_thread]:[15:32:56.829483] i is 2, after rkipc_storage_read_file_list
[storage.c][rkipc_storage_file_scan_thread]:total_size = 243631, free_size = 243549
cmpi             15:32:56-832 {mb_create_pool    :231} allocated buffer(this=[0x1d0928, data=0xa2aea000storage.c, size=][rkipc_storage_file_monitor_thread40960]:pHandle->dev_sta.mount_status is , id=4237
)
cmpi             15:32:56-836 {mb_create_pool    :231} allocated buffer(this=0x1d1028, data=0xa2ae0000, size=40960, id=238)
cmpi             15:32:56-838 {attachToChn       :594} The channel attr attach mapid: 0x0.
cmpi             15:32:56-838 {attachToChn       :594} The channel attr attach mapid: 0x0.
cmpi             15:32:56-839 {attachToChn       :594} The channel attr attach mapid: 0x0.
[video.c][rkipc_ivs_get_results]:MD: md_area is 518400, md_area_threshold is 155520
[video.c][rkipc_ivs_get_results]:MD: md_area is 518400, md_area_threshold is 155520
[video.c][rkipc_ivs_get_results]:MD: md_area is 518400, md_area_threshold is 155520
[video.c][rkipc_get_jpeg]:RK_MPI_VENC_GetStream timeout a004800e
[video.c][rkipc_ivs_get_results]:MD: md_area is 319488, md_area_threshold is 155520
[video.c][rkipc_ivs_get_results]:MD: md_area is 492544, md_area_threshold is 155520
[video.c][rkipc_ivs_get_results]:MD: md_area is 183296, md_area_threshold is 155520
[video.c][rkipc_ivs_get_results]:MD: md_area is 189440, md_area_threshold is 155520
^C[rkipc.c][sig_proc]:received signo 2 
[server.c][rkipc_server_deinit]:rkipc_server_deinit failed
RKMpiIvsChannel  15:33:17-299 {getResults        :718} get result timeout

[video.c][rkipc_ivs_get_results]:get chn 0 fail -1609269234
RTDeviceV4L2     15:33:17-350 {ispStreamOff      :521} do ispStreamOff start
RTDeviceV4L2     15:33:17-376 {ispStreamOff      :532} do ispStreamOff done
RTDeviceV4L2     15:33:17-376 {close             :374} do RTDeviceV4L2 close
[osd.c][osd_time_server]:exit
MpiAdapterEncode 15:33:17-396 {ma_encode_destroy :2347} unmap ptr: 0xa45a5000
RTDeviceV4L2     15:33:17-397 {ispStreamOff      :521} do ispStreamOff start
RTDeviceV4L2     15:33:17-416 {ispStreamOff      :532} do ispStreamOff done
RTDeviceV4L2     15:33:17-417 {close             :374} do RTDeviceV4L2 close
MpiAdapterEncode 15:33:17-419 {ma_encode_destroy :2347} unmap ptr: 0xa3afb000
RTDeviceV4L2     15:33:17-420 {ispStreamOff      :521} do ispStreamOff start
CAMHW:K:camId:0, notify_isp_stream_status off
RTDeviceV4L2     15:33:17-496 {ispStreamOff      :532} do ispStreamOff done
RTDeviceV4L2     15:33:17-496 {close             :374} do RTDeviceV4L2 close
[video.c][rkipc_pipe_jpeg_deinit]:RK_MPI_VENC_DestroyChn success
[isp.c][rk_isp_deinit]:cam_id is 0
[isp.c][rk_isp_deinit]:rk_aiq_uapi2_sysctl_stop enter
XCORE:K:cid[0] rk_aiq_uapi_sysctl_stop success.
[isp.c][rk_isp_deinit]:rk_aiq_uapi2_sysctl_deinit enter
MessageParser process loop exit!
IPCSERVER:K:cid[0] Deinit success
XCORE:K:cid[0] rk_aiq_uapi_sysctl_deinit_locked success.
[isp.c][rk_isp_deinit]:rk_aiq_uapi2_sysctl_deinit exit
(null)           15:33:17-638 {monitor_log_level :190} monitor_log_level quit
[param.c][rk_param_deinit]:rk_param_deinit

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

luckfox rknn 예제  (0) 2026.04.27
luckfox rv1106 riscv  (0) 2026.04.24
luckfox rv1106 rockchip RNN  (0) 2026.04.24
luckfox csi 카메라 테스트  (0) 2026.04.23
luckfox pico ultra W 켜봄  (0) 2026.04.22
Posted by 구차니
embeded/luckfox2026. 4. 24. 14:38

rockchip rv1106 에는 risc-v MCU가 있는데

luckfox wiki 에는 어떻게 쓰는지 잘 안보이는 느낌이라.. (luckfox pico ultra W 쪽..)

여기저기 뒤지는 중..

 

[링크 : https://www.reddit.com/r/RISCV/comments/181ldns/anyone_have_any_idea_on_how_the_riscv/?tl=ko]

[링크 : https://github.com/LuckfoxTECH/luckfox-pico/issues/99]

[링크 : https://github.com/luyi1888/rv1106-mcu] << mcutool 소스

[링크 : https://github.com/deerpi/arm-rockchip830-linux-uclibcgnueabihf] << riscv용 인진 모르겠음 툴체인

 

[링크 : https://github.com/LuckfoxTECH/luckfox-pico/issues/112]

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

luckfox rknn 예제  (0) 2026.04.27
luckfox 카메라 모션 디텍트 끄기  (0) 2026.04.27
luckfox rv1106 rockchip RNN  (0) 2026.04.24
luckfox csi 카메라 테스트  (0) 2026.04.23
luckfox pico ultra W 켜봄  (0) 2026.04.22
Posted by 구차니
embeded/luckfox2026. 4. 24. 14:30

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

luckfox rknn 예제  (0) 2026.04.27
luckfox 카메라 모션 디텍트 끄기  (0) 2026.04.27
luckfox rv1106 riscv  (0) 2026.04.24
luckfox csi 카메라 테스트  (0) 2026.04.23
luckfox pico ultra W 켜봄  (0) 2026.04.22
Posted by 구차니