ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.38k stars 233 forks source link

Setup and compilation for Olimex A20 #507

Open dvdvideo1234 opened 3 years ago

dvdvideo1234 commented 3 years ago

The board: https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2/open-source-hardware

  1. $ uname -a Linux a20-olinuxino 5.10.47-olimex #080601 SMP Wed Jul 7 08:07:39 UTC 2021 armv7l armv7l armv7l GNU/Linux
  2. $ sudo lshw
    a20-olinuxino
    description: ARMv7 Processor rev 4 (v7l)
    product: Olimex A20-OLinuXino-LIME2
    serial: 00013e8d
    width: 32 bits
    capabilities: smp
    *-core
       description: Motherboard
       physical id: 0
     *-cpu:0
          description: CPU
          product: cpu
          physical id: 0
          bus info: cpu@0
          size: 720MHz
          capacity: 960MHz
          capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm cpufreq
     *-cpu:1
          description: CPU
          product: cpu
          physical id: 1
          bus info: cpu@1
          size: 720MHz
          capacity: 960MHz
          capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm cpufreq
     *-memory
          description: System memory
          physical id: 2
          size: 998MiB
     *-scsi
          physical id: 3
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: WDC WD6400BPVT-6
             vendor: Western Digital
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 1A01
             serial: WD-WX41A11C8438
             size: 596GiB (640GB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=b5cd3ebd-5686-1548-a094-db9ea10fa596 logicalsectorsize=512 sectorsize=4096
           *-volume
                description: EXT4 volume
                vendor: Linux
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                logical name: /mnt/Disk
                version: 1.0
                serial: 3aa73106-944c-4c66-809f-d2b99d9c863c
                size: 596GiB
                capacity: 596GiB
                capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                configuration: created=2021-07-06 19:29:38 filesystem=ext4 lastmountpoint=/mnt/Disk modified=2021-07-16 11:33:46 mount.fstype=ext4 mount.options=rw,nodev,relatime mounted=2021-07-16 11:33:46 state=mounted
    *-usbhost:0
       product: EHCI Host Controller
       vendor: Linux 5.10.47-olimex ehci_hcd
       physical id: 2
       bus info: usb@1
       logical name: usb1
       version: 5.10
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
    *-usbhost:1
       product: EHCI Host Controller
       vendor: Linux 5.10.47-olimex ehci_hcd
       physical id: 3
       bus info: usb@2
       logical name: usb2
       version: 5.10
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
     *-usb
          description: USB hub
          product: USB 2.0 Hub
          vendor: Terminus Technology Inc.
          physical id: 1
          bus info: usb@2:1
          version: 1.11
          capabilities: usb-2.00
          configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s
        *-usb
             description: Human interface device
             product: USB to Serial
             vendor: INNO TECH
             physical id: 4
             bus info: usb@2:1.4
             version: 0.02
             capabilities: usb-1.10
             configuration: driver=usbhid maxpower=100mA speed=2Mbit/s
    *-usbhost:2
       product: Generic Platform OHCI controller
       vendor: Linux 5.10.47-olimex ohci_hcd
       physical id: 4
       bus info: usb@3
       logical name: usb3
       version: 5.10
       capabilities: usb-1.10
       configuration: driver=hub slots=1 speed=12Mbit/s
    *-usbhost:3
       product: Generic Platform OHCI controller
       vendor: Linux 5.10.47-olimex ohci_hcd
       physical id: 5
       bus info: usb@4
       logical name: usb4
       version: 5.10
       capabilities: usb-1.10
       configuration: driver=hub slots=1 speed=12Mbit/s
    *-usbhost:4
       product: MUSB HDRC host driver
       vendor: Linux 5.10.47-olimex musb-hcd
       physical id: 1
       bus info: usb@5
       logical name: usb5
       version: 5.10
       capabilities: usb-2.00
       configuration: driver=hub slots=1 speed=480Mbit/s
    *-network
       description: Ethernet interface
       physical id: 6
       logical name: eth0
       serial: 30:1f:9a:d0:a0:83
       size: 1Gbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=st_gmac driverversion=Jan_2016 duplex=full ip=192.168.0.7 link=yes multicast=yes port=twisted pair speed=1Gbit/s
ptitSeb commented 2 years ago

I'm sorry, but what is the question here?

dvdvideo1234 commented 2 years ago

Basically I am trying to use Box x86 to run x86 stuff on my olimex board with ARM7 processor, but I am unable to do it. Your colleague requested the CPU info from me.

ptitSeb commented 2 years ago

Use the ODROID or PYRA profile, both should work on your board..