U-Boot

Editing Kernel command-line arguments inside Kernel

那年仲夏 提交于 2020-07-15 06:18:19
问题 U-boot passes kernel command-line parameters. In my requirement I want to edit these parameters in the kernel source tree and don't want to change U-boot code. I am using 2.6.35 kernel. So please guide me which part of the kernel source I have to check for this. 回答1: Follow this procedure: Enter the kernel config by typing make menuconfig Enter the menu Processor type and features Enable Built-in kernel command line Specify your command line by clicking on Built-in kernel command string

Editing Kernel command-line arguments inside Kernel

懵懂的女人 提交于 2020-07-15 06:18:13
问题 U-boot passes kernel command-line parameters. In my requirement I want to edit these parameters in the kernel source tree and don't want to change U-boot code. I am using 2.6.35 kernel. So please guide me which part of the kernel source I have to check for this. 回答1: Follow this procedure: Enter the kernel config by typing make menuconfig Enter the menu Processor type and features Enable Built-in kernel command line Specify your command line by clicking on Built-in kernel command string

Editing Kernel command-line arguments inside Kernel

烂漫一生 提交于 2020-07-15 06:18:07
问题 U-boot passes kernel command-line parameters. In my requirement I want to edit these parameters in the kernel source tree and don't want to change U-boot code. I am using 2.6.35 kernel. So please guide me which part of the kernel source I have to check for this. 回答1: Follow this procedure: Enter the kernel config by typing make menuconfig Enter the menu Processor type and features Enable Built-in kernel command line Specify your command line by clicking on Built-in kernel command string

Implement custom u-boot command

百般思念 提交于 2020-07-03 13:18:10
问题 I want to add custom command command to u-boot be it a simple hello world command. After searching I found this link Yocto u-boot Custom Commands where it says to look at timer command in cmd/misc.c as starting point. How do I bring this timer command to my u-boot image? I assume I have make changes to the makefiles but not sure which makefile I should edit. I am using qemu to test the u-boot image in Ubuntu 18.04 using the following method Cloned the u-boot source from github. Installed all

《海思3531D

北城以北 提交于 2020-05-08 19:46:34
1.展开SDK包得时候,运行./sdk.unpack得时候出现: 原因:ubuntu14.04中默认得是dash,要将dash改成bash。 解决方法:sudo ln -fs /bin/bash /bin/sh 2.安装完arm-hisiv500-linux-gcc后编译内核,提示/bin/sh: /opt/hisi-linux/x86-arm/arm-hisiv500-linux/target/bin/arm-hisiv500-linux-gcc: No such file or directory 这是因为宿主机是64 位 而交叉编译器是针对32位的开发板制作的。所以要安装对应的32位库。 我的linux宿主机是ubuntu 14.04 64位。 安装命令: sudo apt install lib32z1-dev 3.arm-hisiv500-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory 安装命令:apt-get install lib32stdc++6 4.“mkimage” command not found – U-Boot images will not be built

NUC972 linux 烧录

时光总嘲笑我的痴心妄想 提交于 2020-05-08 08:04:45
节介绍如何刻录uboot、kernel和文件系统到NAND Flash, 并且设定NUC970系列芯片从NAND Flash中开机。本节操作需要windows环境下进行。(初次连接电脑需要安装驱动) A.酷客-Coidea972开发板 UART和USB连接PC B.将酷客-Coidea972开发板设定成USB开机,此时电脑会显示发现新硬件 C.开启NuWriter选择NUC970系列芯片,并选择完成后按下“Continue” 注意:NuWriter打开的时候,会自动连接开发板。Re-Connect指示灯会显示绿色。如果开发板重上电或复位,则需要按下Re-Connect键进行重新连接。 从开发板的串口打印信息中,也可以看出来开发板的工作状态,当开发板上电时,串口打印信息如下: 此信息代表开发板以USB方式启动。当NuWriter与开发板连接以后,串口打印信息如下: 此信息代表开发板进入程序下载模式,此时才可以下载程序。 D.擦除全盘 擦除全盘不是必须的,但是如果文件系统有更新,或者在文件正常烧录的情况下仍然无法正常开机则需要擦除全盘,点击NuWriter的Erase按钮擦除全盘。 在弹出的对话框直接点OK,即可擦除全盘。 E.烧录u-boot-spl.bin, 选择“NAND”模式 输入Image档案数据: Image Name : u-boot-spl.bin Image Type

解压 xxxx.cpio.gz.u-boot

冷暖自知 提交于 2020-05-08 05:19:18
xxxx.cpio.gz.u-boot 为 Ramdisk 文件。 是使用u-boot源码下 tools/mkimage 工具生成的。 .u-boot = 64字节的头部信息 + Filesystem 包 解包方法: 通过:dd if=xxxx.cpio.gz.u-boot of=xxxx.cpio.gz skip=64 bs=1 得到 xxxx.cpio.gz 通过: gunzip xxxx.cpio.gz 得到 xxxx.cpio 通过:cpio -idmv < ../xxxx.cpio 得到文件系统。 打包方法: 1. sudo apt-get install u-boot-tools ./为包含文件系统的路径 2.find . | cpio -o -H newc > ../xxxxxxxxxxxxxxx.cpio 3. gzip name-swupdate.cpio 4. mkimage -A arm64 -O linux -T ramdisk -C none -n name-swupdate -d name-swupdate.cpio.gz name-swupdate.cpio.gz.u-boot 查看ramdisk 头部信息: mkimage -l name-swupdate.cpio.gz.u-boot 设置 boot arguments : setenv

【swupdate文档 三】SWUpdate: 嵌入式系统的软件升级

瘦欲@ 提交于 2020-05-08 04:53:56
SWUpdate: 嵌入式系统的软件升级 概述 本项目被认为有助于从存储媒体或网络更新嵌入式系统。但是,它应该主要作为一个框架来考虑,在这个框架中可以方便地向应用程序添加更多的协议或安装程序(在SWUpdate中称为处理程序)。 一个用例是从外部本地媒体(如USB-Pen或sd卡)进行更新。在这种情况下,更新是在没有操作员干预的情况下完成的:它被认为是“一键更新”,软件在复位时启动,只需按下一个键(或者以任何目标可以识别的方式),自动进行所有检查。最后,更新过程只向操作员报告状态(成功或失败)。 输出可以使用帧缓冲设备显示在LCD上,也可以定向到串行通讯端口上(Linux控制台)。 它通常用于单拷贝方案中,在initrd中运行(用Yocto提供的配方生成)。但是,通过使用软件集合( collections ),可以在双拷贝方案中使用它。 如果启动了远程更新,SWUpdate将启动嵌入式web服务器并等待请求。操作者必须上传一个合适的映像,然后SWUpdate会进行检查并安装。所有输出都通过AJAX通知的方式通知操作人员的浏览器。 功能 总体概览 安装在嵌入式介质上(eMMC、SD、Raw NAND、NOR、SPI-NOR flash) 检查镜像是否可用。镜像以指定的格式(cpio)构建,它必须包含一个描述文件,以描述必须更新的软件。 SWUpdate被认为可以更新设备上的UBI卷

IOT 安全资料整合(主要是路由器)

[亡魂溺海] 提交于 2020-05-06 02:50:40
适合入门的资料 伏辰实验室-物联网安全百科 绿盟 - 智能设备安全分析手册 物联网安全从入门到入坑 环境搭建 路由器漏洞挖掘测试环境的搭建之问题总结 固件提取&固件分析 http://www.devttys0.com/2011/06/mystery-file-system/ http://www.devttys0.com/2011/05/reverse-engineering-firmware-linksys-wag120n/ 逆向路由器固件之解包 基于 VxWorks 的嵌入式设备固件分析方法介绍 TP-Link wr886nv7-V1.1.0 路由器分析 – 固件初步分析 TP-Link wr886nv7-V1.1.0 路由器分析 - VxWorks cmd命令行获取及使用方法 物联网设备的固件分析技术 VxWorks固件逆向:WRT54Gv8 工控漏洞挖掘方法之固件逆向分析 路由固件的逆向解包及破解方法 深入分析Ewon Flexy物联网路由器(下) D-Link DIR-850L路由器分析之获取设备shell TP-Link wr886nv6 固件解析 Reverse Engineering VxWorks Firmware: WRT54Gv8 IoT固件逆向入门 安全小课堂第118期【IOT漏洞挖掘之路由器】 关于IoT安全我有话说 智能路由器安全特性分析

OpenWrt-19.07.2 For HC5861(极路由3) /HiWiFi/Gee最新固件,极路由3刷openwrt

青春壹個敷衍的年華 提交于 2020-05-03 17:17:06
OpenWrt For HiWiFi(HC5861) 自编译精减固件,极路由3自用固件 HC5861-uboot.bin v19.07.2 下载 支持 NTFS 读写 支持 Wi-Fi 5G 驱动 默认开启 WiFi 不支持 Fat 文件系统 默认语言为中文 支持 samba 共享 支持 Luci 挂载点 支持 LED 灯 SD卡驱动、USB 2.0 驱动 刷固件教程 将 HC5861-uboot.bin 和 XXXXXX-openwrt-ramips-mt7620-hiwifi-hc5861-squashfs-sysupgrade.bin 上传到路由器 /tmp 目录中 将U-boot替换成解锁版 mtd write /tmp/HC5861-uboot.bin u-boot 刷入固件 sysupgrade -F -n /tmp/XXXXXX-openwrt-ramips-mt7620-hiwifi-hc5861-squashfs-sysupgrade.bin 等待刷完系统自动重启,刷入过程切勿断电,否则变砖. (首次重启需要比较长,请耐心等待) 可能出现问题 1. 确认账号和密码正确情况下,拨号上网失败 解决方法:通过 ssh 连接路由器,执行以下命令 cd /etc/config uci set network.lan.ifname='eth0' uci set network