首页 > 其他分享 >【xboot】xboot环境搭建

【xboot】xboot环境搭建

时间:2024-07-24 20:56:29浏览次数:13  
标签:xboot uart Probe 环境 device gpio arm 搭建

1.下载xboot源码

git clone https://gitee.com/xboot/xboot.git

2.交叉编译各种环境下的xboot

2.1 rapi3

rapi3交叉工具链下载路径:
https://developer.arm.com/downloads/-/gnu-a

image

编译rapi3命令:

make clean
make CROSS_COMPILE=/home/zx/Desktop/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/aarch64-none-elf- PLATFORM=arm64-raspi3

编译成功:

image

2.2 rapi2

rapi2的交叉工具链:
image

编译rapi2命令:

make clean
make CROSS_COMPILE=/home/zx/Desktop/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf- PLATFORM=arm32-raspi2

2.3 Realview平台

使用qeum-system-arm模拟器

make clean
make CROSS_COMPILE=/home/zx/Desktop/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf- PLATFORM=arm32-realview

2.4 全志V3S(荔枝派lichee-pi zero)

make clean
make CROSS_COMPILE=/path/to/arm-none-linux-gnueabihf- PLATFORM=arm32-v3s

2.5 x86_64位Linux系统下的sandbox

sudo apt-get install libsdl2-dev
make clean
make CROSS_COMPILE="" PLATFORM=x64-sandbox

3.qeum仿真运行xboot.bin文件

执行以下脚本后发现当前Ubuntu的qemu不支持rasp3

image

查看当前版本所支持的板子:

qemu-system-aarch64 -M ?

image

表示当前只支持2代板子

运行realview环境,执行成功

img

运行log

zx@ubuntu:~/Desktop/codes/xboot/tools/qemu-system/linux$ ./realview-run.sh 
WARNING: Image format was not specified for '/home/zx/.xboot/sdcard.img' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
█████████████████████████
██ ▄▄▄▄▄ ██▄▀▀▀█ ▄▄▄▄▄ ██
██ █   █ █ ▀▄█ █ █   █ ██
██ █▄▄▄█ ██▄  ██ █▄▄▄█ ██
██▄▄▄▄▄▄▄█▄█ █ █▄▄▄▄▄▄▄██
████▀▄ ▀▄▄█ ▀█▄▀█▀▀  █▀██
███▀▄▀ ▀▄ ▄█▀▀▄▀█ ▀█ ▄███
███▄█▄█▄▄▄▀▀ ▄ ▀ ▄▄ ▀  ██
██ ▄▄▄▄▄ █▄ ▄█▄▀▄████▄▄██
██ █   █ █ ▀█▄█▄▄█ ▄▀█▄██
██ █▄▄▄█ ██▀  █ ▄▄▄▄█▄ ██
██▄▄▄▄▄▄▄███▄██▄▄▄▄▄▄▄███
█████████████████████████
       _                   _                 
 _  _ | |___ _____ _____ _| |_               
\ \/ /|  _  |  _  |  _  |_   _|  (C) 2007-2023   
 )  ( | |_| | |_| | |_| | | |____JIANJUN.JIANG__ 
/_/\_\|_____|_____|_____| |_____________________|
V3.0.0 (Jul 24 2024 - 05:36:47) - [realview-pbx-a9][ARM RealView Platform Baseboard Explore for Cortex-A9]
[    0.000020]Probe device 'blk-romdisk.0' with blk-romdisk
[    0.000800]Probe device 'xtal' with clk-fixed
[    0.000810]Probe device 'uclk' with clk-fixed
[    0.000820]Probe device 'kclk' with clk-fixed
[    0.000830]Probe device 'mclk' with clk-fixed
[    0.000840]Probe device 'timclk' with clk-fixed
[    0.000850]Probe device 'refclk' with clk-fixed
[    0.000860]Probe device 'irq-gic.0' with irq-gic
[    0.000870]Probe device 'dma-pl08x.0' with dma-pl08x
[    0.000880]Probe device 'gpio-pl061.0' with gpio-pl061
[    0.000890]Probe device 'gpio-pl061.1' with gpio-pl061
[    0.000900]Probe device 'gpio-pl061.2' with gpio-pl061
[    0.000910]Probe device 'ce-sp804.0' with ce-sp804
[    0.000398]Probe device 'cs-sp804.0' with cs-sp804
[    0.001550]Probe device 'uart-pl011.0' with uart-pl011
[    0.002338]Probe device 'uart-pl011.1' with uart-pl011
[    0.003141]Probe device 'uart-pl011.2' with uart-pl011
[    0.004067]Probe device 'uart-pl011.3' with uart-pl011
[    0.004923]Probe device 'i2c-versatile.0' with i2c-versatile
[    0.006058]SD/MMC card at the 'sdhci-pl180.0' host controller:
[    0.006631]  Attached is a SD card
[    0.006950]  Version: 2.0
[    0.007747]  Capacity: 128.000MB
[    0.008063]  CID: AA585951-454D5521-01DEADBE-EF006218
[    0.008540]  CSD: 0026005A-5F59E07F-FFFFDFFF-92600058
[    0.009033]  Max transfer speed: 50000000 HZ
[    0.009432]  Manufacturer ID: AA
[    0.009742]  OEM/Application ID: 5859
[    0.010080]  Product name: 'QEMU!'
[    0.010400]  Product revision: 0.1
[    0.010952]  Serial no: 4292870034
[    0.011426]  Manufacturing date: 2006.2
[    0.012759]Found mbr partition:
[    0.013116]  0x0000000000000000 ~ 0x0000000007ffffff 128.000MB - sdhci-pl180.0.sdcard
[    0.014063]  0x0000000000100000 ~ 0x00000000040fffff 64.000MB  - sdhci-pl180.0.sdcard.p0
[    0.014925]  0x0000000004100000 ~ 0x0000000007ffffff 63.000MB  - sdhci-pl180.0.sdcard.p1
[    0.015782]Probe device 'sdhci-pl180.0' with sdhci-pl180
[    0.016986]Probe device 'key-gpio-polled.0' with key-gpio-polled
[    0.017672]Fail to probe device with rc-gpio
[    0.018107]Fail to probe device with rotary-gpio
[    0.018792]Probe device 'keyboard-pl050.0' with keyboard-pl050
[    0.019698]Probe device 'mouse-pl050.0' with mouse-pl050
[    0.021019]Probe device 'led-gpio.0' with led-gpio
[    0.021536]Probe device 'led-gpio.1' with led-gpio
[    0.022136]Probe device 'ledtrigger-heartbeat.0' with ledtrigger-heartbeat
[    0.025838]Probe device 'ledtrigger-general.0' with ledtrigger-general
[    0.026795]Probe device 'buzzer-gpio.0' with buzzer-gpio
[    0.027401]Probe device 'vibrator-gpio.0' with vibrator-gpio
[    0.028068]Probe device 'rtc-pl031.0' with rtc-pl031
[    0.030807]Probe device 'rtc-ds1338.0' with rtc-ds1338
[    0.046167]Probe device 'fb-pl111.0' with fb-pl111
[    0.046487]Probe device 'console-uart.0' with console-uart
[    0.046951]Probe device 'console-uart.1' with console-uart
[    0.049718]Probe device 'console-uart.2' with console-uart
[    0.050061]Probe device 'console-uart.3' with console-uart
[    0.050994]mount /private with 'ram' filesystem
[    0.101480]ext4: directory indexing is not available
Press any key to stop auto boot:  0.000
xboot: /#

标签:xboot,uart,Probe,环境,device,gpio,arm,搭建
From: https://www.cnblogs.com/Wangzx000/p/18319920

相关文章

  • [WPF] 脱机环境实现支持拼音模糊搜索的AutoCompleteBox
    AutoCompleteBox是一个常见的提高输入效率的组件,很多WPF的第三方控件库都提供了这个组件,但基本都是字符串的子串匹配,不支持拼音模糊匹配,例如无法通过输入ldh或liudehua匹配到刘德华。要实现拼音模糊搜索功能,通常会采用分词、数据库等技术对待匹配数据集进行预处理。某些场景受制于......
  • 搭建环境(细节)
    搭建环境jdk+搭建服务器+上传代码包+配置文件+建数据库还原数据+启动服务器一、环境的介绍(1)测试环境分类;a、开发环境,开发b、测试环境,(也叫sit环境,uat环境)测试人员c、线上环境(也叫生成环境)运营(2)测试环境作用:a、用于功能测试b、寻找bugc、编写测试用例等(3)环境的结......
  • 12.搭建环境
    搭建环境一、环境的介绍(1)测试环境分类;a、开发环境,开发b、测试环境,(也叫sit环境,uat环境)测试人员c、线上环境(也叫生成环境)运营(2)测试环境作用:a、用于功能测试b、寻找bugc、编写测试用例等(3)环境的结构:lampj=linux+apache+mysql+java==================......
  • DNS服务器的搭建
    目录1、DNS服务器端软件2、DNS服务器搭建第⼀步:环境准备第二步:web主机的搭建第三步:服务器端配置DNS第四步:配置DNS主机第五步: 检查配置文件是否正确3、搭建完成回到客户端测试1、DNS服务器端软件DNS的==域名解析==都是==udp/53==.主从之间的==数据传输==默......
  • nfs和web服务器的搭建
    (一)web服务器的搭建1.配置基本环境要点有,yum源,包含nginx和阿里云(或者腾讯云或者华为云),这里的相关知识可以参考之前的yum配置笔记2.安装nginx yum-yinstallnginx3.验证并且开启服务查看我们是否安装成功了,如果成功了就打开服务4.验证nginx服务界面5.修改nginx配置......
  • 有害职场环境(Toxic Work Environment)
    职场环境有害(ToxicWorkEnvironment)是指职场中存在各种负面因素和行为,导致员工感到压力大、不快乐、缺乏安全感和不满意,从而影响他们的身体健康、心理健康和工作表现。以下是一些容易导致职场环境有害的主要因素及其影响:主要因素职场霸凌(WorkplaceBullying):表现:指语言或行......
  • 在K8S中,我们公司用户反应pod连接数非常多,希望看一下这些连接都是什么信息?什么状态?怎么
    在K8S中,当用户反映Pod连接数非常多时,为了查看这些连接的具体信息和状态,并考虑到容器内没有集成bash环境和网络工具的情况,可以采取以下步骤进行排查:一、确认问题并收集信息查看Pod状态:使用kubectlgetpods命令查看Pod列表,确认哪个Pod的连接数异常。使用kubectldescribepod......
  • pycharm配置及python环境相关配置
     python虚拟环境不同项目依赖的第三方包的版本可能不一样,这样一个环境就没法同时开发不同的项目,所以需要创建不同的虚拟环境virtualenv用户创建独立的python环境,多个python项目互相独立互不影响安装方法pipinstallvirtualenv创建虚拟环境virtualenvvenv会......
  • Linux下jdk安装及环境变量配置
    一、解压安装jdk 将下载好的压缩文件复制到/usr/local/src目录下进入/usr/local/src并解压:cd/usr/local/src&&tarxvf[压缩文件名称]二、配置环境变量(推荐使用第三种或第四种)配置之前需要根据实际情况在命令行设置JAVA_HOME:例如(/usr/local/src/jdk1.8.0_......
  • SRS4.0 WebRTC一对一通话环境搭建与逻辑分析(转载)
    辑分析参考:https://blog.csdn.net/m0_60259116/article/details/12469164711.1环境搭建11.1.1.安装go语⾔环境1.在Go语⾔官⽹找到对应的安装包(Downloads-TheGoProgrammingLanguage)2.下载和解析(使用的是阿里云的Ubuntu系统):cd/usr/local/wgethttps://dl.google.com/g......