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 이다.

Posted by 구차니
Programming/qt2026. 4. 28. 15:01

QMovie를 통해서 GIF 파일을 재생할 수 있다.

QMovie *Movie=new QMovie(":/image/Loading_icon.gif");
ui->label->setMovie(Movie);
Movie->start();

[링크 : https://blog.naver.com/browniz1004/221304483179]

 

아래의 메소드로 지원여부를 확인할 수 있는데 qt5에서 해보니 gif만 덩그러니..

아니 avi나 mov 이런건 지원안하는건가? movie 라면서?!?!

qDebug() << QMovie::supportedFormats();

[링크 : https://busyman.tistory.com/494]

 

 

그 와중에 함정은

mainwindow.ui 에 label 하나 넣어줘야 한다는거

 

실행파일과 동일한 위치에 test.gif를 위치시켜야 한다.

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    qDebug() << QMovie::supportedFormats();

    QMovie *Movie=new QMovie("test.gif");
    ui->label->setMovie(Movie);
    Movie->start();
}

 

스샷이니 멈춰있지만 잘~~돈다.

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

qt5 다국어 지원 테스트  (0) 2026.04.28
qt5 설치하기 on ubunut 22.04  (0) 2026.04.28
Qimage 단색 비트맵  (0) 2026.04.27
qt 위젯 캡쳐  (0) 2026.04.27
qt 다국어지원 관련  (0) 2026.04.22
Posted by 구차니
Programming/qt2026. 4. 28. 11:38

이거.. 넣었던가.. 자동으로 다국어 지원한다고 하면 들어갔던가 기억이 안나네..

#include <QTranslator>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QTranslator translator;
    const QStringList uiLanguages = QLocale::system().uiLanguages();
    for (const QString &locale : uiLanguages) {
        const QString baseName = "prjname_" + QLocale(locale).name();
        if (translator.load(":/i18n/" + baseName)) {
            a.installTranslator(&translator);
            break;
        }
    }
    MainWindow w;

    w.show();
    return a.exec();
}

 

qt creator 에서

tools - external - linguist - update translation 하면 ts 확장자를 가진 파일들이 생성된다.

 

그리고 그걸 linguist 에서 복수의 파일을 ctrl 누르고 열면 다음과 같이 나오는데

하나의 메시지(원본 텍스트)에 대해서 American(en_US 파일), 한국어(ko_KR 파일) 에 대해서 번역을 진행하고

 

linguist - 파일 - 모두 배포를 눌러주면 확장자가 qm인 파일이 배포되고

 

빌드를 한 후,

아래와 같이 하면 언어 "영어"로 선택되서 실행된다.

LANG=en_US ./prjname
LC_ALL=en_US ./prjname

 

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

qt5 gif 애니메이션  (0) 2026.04.28
qt5 설치하기 on ubunut 22.04  (0) 2026.04.28
Qimage 단색 비트맵  (0) 2026.04.27
qt 위젯 캡쳐  (0) 2026.04.27
qt 다국어지원 관련  (0) 2026.04.22
Posted by 구차니
Programming/qt2026. 4. 28. 10:28

필요한게 uitools, multimedia, linguist 라서 좀 고생

 

sudo apt install -y qtcreator qtbase5-dev qt5-qmake cmake qttools5-dev-tools qttools5-dev qtmultimedia5-dev

 

어우 속이 다 편안하네. qt6 가 문제인건가..

어짜피 target에서 qt6 쓸수 있는 상황아니면 굳이 qt6을 고집할 필요는 없지 머.

 

와.. 그 개고생했던게 한방에 해결이네

 

[링크 : https://askubuntu.com/questions/1404263/how-do-you-install-qt-on-ubuntu22-04]

[링크 : https://stackoverflow.com/questions/20670457/qt-5-unknown-modules-in-qt-uitools]

[링크 : https://stackoverflow.com/questions/70720437/how-to-install-qmultimedia-on-ubuntu]

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

qt5 gif 애니메이션  (0) 2026.04.28
qt5 다국어 지원 테스트  (0) 2026.04.28
Qimage 단색 비트맵  (0) 2026.04.27
qt 위젯 캡쳐  (0) 2026.04.27
qt 다국어지원 관련  (0) 2026.04.22
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 구차니

docker 쓰기 싫어서 pre-built binary로 ㄱㄱ

[링크 : https://github.com/mostlygeek/llama-swap/releases]

 

그냥 실행하니 config.yaml 없다고 배쨰는데

$ ./llama-swap 
Error loading config: open config.yaml: no such file or directory

 

다시 잘보니.. 당연하게(?) llama.cpp의 gguf 를 이용해서 바꾸는거라 llama.cpp가 있는데서 해야한다.

# minimum viable config.yaml

models:
  model1:
    cmd: llama-server --port ${PORT} --model /path/to/model.gguf

[링크 : https://github.com/mostlygeek/llama-swap]

 

+

llama-server도 pre-built로 받았더니 PATH 에 없어서 전체 경로 넣어주게 생겼음 ㅋㅋ

아무튼 --port {PORT}는 빼면 안되는 것 같고

$ cat config.yaml 
# minimum viable config.yaml

models:
  gemma4-26B:
    cmd: /home/minimonk/src/llama-b8876/llama-server --port ${PORT} --model /home/minimonk/src/model/gemma-4-26B-A4B-it-UD-IQ2_M.gguf
  gemma4-e2b:
    cmd: /home/minimonk/src/llama-b8876/llama-server --port ${PORT} --model /home/minimonk/src/model/gemma-4-E2B-it-Q4_K_M.gguf
  gemma4-e4b:
    cmd: /home/minimonk/src/llama-b8876/llama-server --port ${PORT} --model /home/minimonk/src/model/gemma-4-E4B-it-Q4_K_M.gguf
  llama3.2-3b:
    cmd: /home/minimonk/src/llama-b8876/llama-server --port ${PORT} --model /home/minimonk/src/model/Llama-3.2-3B-Instruct-Q4_K_M.gguf
  qwen3.6-35b:
    cmd: /home/minimonk/src/llama-b8876/llama-server --port ${PORT} --model /home/minimonk/src/model/Qwen3.6-35B-A3B-UD-Q2_K_XL.gguf

 

8080번 포트로 붙으면 상단에 모델 변경하면서 말걸으면 된다.

 

근데.. 왜?

메모리도 넉넉할텐데 동시 복수의 모델 로드는 안되는거지?

Posted by 구차니

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

postgresql 리스트 명령  (0) 2024.07.25
postgresql permission denied for schema public  (0) 2024.07.25
라즈베리에 phppgadmin. 안되잖아?  (0) 2024.07.24
phppgadmin  (0) 2024.07.23
postgresql 15.7 on rpi  (0) 2024.07.22
Posted by 구차니
Programming/qt2026. 4. 27. 15:19

 

 

QImage QImage::convertToFormat(QImage::Format format, Qt::ImageConversionFlags flags = Qt::AutoColor) const &
QImage QImage::convertToFormat(QImage::Format format, Qt::ImageConversionFlags flags = Qt::AutoColor) &&
QImage QImage::convertedTo(QImage::Format format, Qt::ImageConversionFlags flags = Qt::AutoColor) const &

[링크 : https://doc.qt.io/qt-6/qimage.html#convertToFormat]

 

'(기본값)'으로 표시된 옵션은 목록의 다른 값이 포함되지 않은 경우 설정됩니다(기본값은 0이므로):

색상/모노 기본 설정 ( QBitmap)의 경우 무시됩니다:

상수 값 설명
Qt::AutoColor 0x00000000 (기본값) - 이미지에 depth 1이 있고 흑백 픽셀만 포함된 경우, 픽셀맵은 흑백이 됩니다.
Qt::ColorOnly 0x00000003 픽셀맵이 디더링/변환되어 native display depth.
Qt::MonoOnly 0x00000002 픽셀맵이 흑백이 됩니다. 필요한 경우 선택한 디더링 알고리즘을 사용하여 디더링됩니다.

[링크 : https://doc.qt.io/qt-6/ko/qt.html#ImageConversionFlag-enum]

 

Constant Value Description
QImage::Format_Invalid 0 The image is invalid.
QImage::Format_Mono 1 The image is stored using 1-bit per pixel. Bytes are packed with the most significant bit (MSB) first.

[링크 : https://doc.qt.io/qt-6/qimage.html#Format-enum]

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

qt5 다국어 지원 테스트  (0) 2026.04.28
qt5 설치하기 on ubunut 22.04  (0) 2026.04.28
qt 위젯 캡쳐  (0) 2026.04.27
qt 다국어지원 관련  (0) 2026.04.22
qt ui loader  (0) 2026.04.01
Posted by 구차니
Programming/qt2026. 4. 27. 14:46

 

[링크 : https://1d1cblog.tistory.com/333]

 

qt4.4

QPixmap QPixmap::grabWindow ( WId window, int x = 0, int y = 0, int width = -1, int height = -1 ) 
QPixmap QPixmap::grabWidget ( QWidget * widget, int x = 0, int y = 0, int width = -1, int height = -1 )  

[링크 : https://radekp.github.io/qtmoko/api/qpixmap.html#grabWindow]

[링크 : https://radekp.github.io/qtmoko/api/qpixmap.html#grabWidget-2]

 

qt 5

QPixmap QWidget::grab(const QRect &rectangle = QRect(QPoint(0, 0), QSize(-1, -1)))

[링크 : https://doc.qt.io/qt-6/qwidget.html#grab]

 

qt 6?

QPixmap QScreen::grabWindow(WId window = 0, int x = 0, int y = 0, int width = -1, int height = -1)

[링크 : https://doc.qt.io/qt-6/qscreen.html#grabWindow]

 

 

chatgpt 가라사대. 

pixmap 으로 grab 해서 만들고

그걸 QBuffer를 이용해서 저장을 내보내면 파일로 안만들어도 된다고 한다.

QPixmap pixmap = widget->grab();  // 또는 grabWindow 등

QByteArray byteArray;
QBuffer buffer(&byteArray);
buffer.open(QIODevice::WriteOnly);

// BMP 포맷으로 메모리에 저장
pixmap.save(&buffer, "BMP");

// 이제 byteArray 안에 BMP 바이너리 데이터가 들어 있음

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

qt5 설치하기 on ubunut 22.04  (0) 2026.04.28
Qimage 단색 비트맵  (0) 2026.04.27
qt 다국어지원 관련  (0) 2026.04.22
qt ui loader  (0) 2026.04.01
qt widget fullscreen  (0) 2026.03.31
Posted by 구차니