xfce4/X11 on Ubuntu18/armhf/ARM/Hisilicon3798

xfce4/X11 on Ubuntu18/armhf/ARM/Hisilicon3798_第1张图片 標題

Note

HiFB ko should be launched before startx/startxfce!

 

CPU Info

 

/ # cat /proc/cpuinfo
processor       : 0
Processor       : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 3170.30
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
Processor       : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 3170.30
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
Processor       : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 3170.30
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
Processor       : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 3170.30
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : bigfish
Revision        : 0000
Serial          : 0000000000000000
/ #  dmesg |grep Machine
Machine model: Hisilicon
/ #
 

Option1: Customized systemctl service or start manually for Hi ko 

 

root@localhost:/# cat  /etc/systemd/system/hisilicon.service

[Unit]
Description=Hisilicon
After=network.target
Before=lightdm.service
StartLimitIntervalSec=0
[Service]
Type=simple
ExecStart=/HiSTBLinuxV100R005C00SPC050/rc.sysinit.ubuntu18

[Install]
WantedBy=multi-user.target

 

root@localhost:/HiSTBLinuxV100R005C00SPC050# ls
lib  log  modules  rc.sysinit  rc.sysinit.ubuntu18  sample  sample_fb_openX11  share

root@localhost:~# systemctl   enable    hisilicon.service
Created symlink /etc/systemd/system/multi-user.target.wants/hisilicon.service → /etc/systemd/system/hisilicon.service.
root@localhost:~# systemctl   start  hisilicon.service
 
 

root@localhost:/# systemctl  status  hisilicon.service
● hisilicon.service - Hisilicon
   Loaded: loaded (/etc/systemd/system/hisilicon.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Wed 2020-08-19 22:03:29 CST; 10h ago
  Process: 261 ExecStart=/HiSTBLinuxV100R005C00SPC050/rc.sysinit.ubuntu18 (code=exited, status=0/SUCCESS)
 Main PID: 261 (code=exited, status=0/SUCCESS)

Aug 19 22:03:25 localhost.localdomain systemd[1]: Started Hisilicon.
Aug 19 22:03:27 localhost.localdomain rc.sysinit.ubuntu18[261]: fb_mem=72564
Aug 19 22:03:27 localhost.localdomain rc.sysinit.ubuntu18[261]: insmod hi_fb.ko video="hifb:vram0_size:72564"
Aug 19 22:03:28 localhost.localdomain rc.sysinit.ubuntu18[261]: insmod hi_ir.ko key_fetch=1 

.......

 

Option2: Manully start  (Prefer)!

 

# Install kernel modules
modload $(ls  /HiSTBLinuxV100R005C00SPC050/modules/[0-9]*.ko)
 

export   LD_LIBRARY_PATH=/HiSTBLinuxV100R005C00SPC050/lib:/HiSTBLinuxV100R005C00SPC050/share:$LD_LIBRARY_PATH
/HiSTBLinuxV100R005C00SPC050/sample_fb_openX11    
 

sample_fb_openX11    is copied from sample_fb with a while loop after /dev/fb0 is opened and initialized!!

 

Finally 

 

startx

 

root@localhost:/HiSTBLinuxV100R005C00SPC050# ls
lib  log  modules  rc.sysinit  rc.sysinit.ubuntu18  sample  sample_fb_openX11  share
root@localhost:/HiSTBLinuxV100R005C00SPC050# ./sample_fb_openX11 &
[1] 650
root@localhost:/HiSTBLinuxV100R005C00SPC050# [19:04:09:823 ERROR-Invalid]:HI_UNF_MCE_Init[35]:ERR: mce open err.
call HI_UNF_MCE_Init failed, Ret=0x80330003!
can't open key file EncryptedKey_332bytes.bin
Set hdcp error

root@localhost:/HiSTBLinuxV100R005C00SPC050# Printing finfo:
tsmem_start = 0x143000
tsmem_len = 74305536
ttype = 0
ttype_aux = 0
tvisual = 2
txpanstep = 1
typanstep = 1
tywrapstep = 0
tline_length = 5120
tmmio_start = (nil)
tmmio_len = 0
taccel = 0
Printing vinfo:
txres: 1280
tyres: 720
txres_virtual: 1280
tyres_virtual: 720
txoffset: 0
tyoffset: 0
tbits_per_pixel: 32
tgrayscale: 0
tnonstd: 0
tactivate: 128
theight: 0
twidth: 0
taccel_flags: 0
tpixclock: -1
tleft_margin: -1
tright_margin: -1
tupper_margin: -1
tlower_margin: -1
thsync_len: -1
tvsync_len: -1
tsync: 0
tvmode: 0
tred: 8/16
tgreen: 8/8
tblue: 8/0
talpha: 8/24

 --- Get HDMI event: UnPlug. ---

root@localhost:/HiSTBLinuxV100R005C00SPC050#
root@localhost:/HiSTBLinuxV100R005C00SPC050#
 --- Get HDMI event: HOTPLUG. ---
startx


X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-168-generic armv7l Ubuntu
Current Operating System: Linux localhost.localdomain 4.4.35_hi3798mv2x #6 SMP PREEMPT Mon Aug 10 13:23:37 CST 2020 armv7l
Kernel command line:  console=ttyAMA0,115200 initrd=0x00000000,0x00000000 mtdparts=hinand:0x05980000@0x00000000(rbl),0x03480000@0x05980000(boot),0x17200000@0x08e00000(flash),0x00400000@0x00000000(fbl),0x00a80000@0x00400000(fbl_data),0x01a40000@0x00e80000(sos),0x01a40000@0x028c0000(sos_bak),0x00b40000@0x04300000(sbl),0x00b40000@0x04e40000(sbl_bak) ip=10.213.7.229::10.213.63.254:255.255.192.0 nwhwconf=device:eth0,hwaddr:2C:95:69:26:D9:BC bnb=4096 rbl=2 rbl_mode=1 rbl_version=1.0.12 dbl=1 bt=VIP53x5-REV2 bootdevice=nand bootfiles=fs bch=225.7.120.2:22222 systemmemsize=2097152  board_id=0 serverid=10.213.8.79 ntpservers=10.213.2.220,10.10.10.10 loglevel=6 root=/dev/nfs rw nfsroot=10.213.7.110:/var/tftp/lake/rootdisk-53x5,proto=tcp gfx_mem_size=0x46DD000 fb_mem=72564 nfs_allowed=root mem=1961M mmz=ddr,0,0,86388K vmalloc=738M
Build Date: 14 November 2019  06:20:46PM
xorg-server 2:1.19.6-1ubuntu4.4 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Aug 20 08:21:33 2020
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

 

 

你可能感兴趣的:(ARM,Linux,Ubuntu)