VM-boot 之路

这是一篇个人笔记,记录了在VMware中使用Linux dd命令制作bootLoader的过程。文章提到制作前提需要img镜像,并指出通过磁盘工具和grub直接在虚拟机上制作会遇到问题。关键点包括添加IDE格式的新硬盘,确保硬盘大小与镜像一致,以及使用dd命令复制镜像。后续内容探讨了使用fdisk和grub失败的原因及VMware添加新串口的设置。

VMware制作bootLoader

NOTE: 个人笔记,仅供本人参考备忘使用

前提

  • 使用linux dd的方法制作
  • 需要有img镜像,因为直接通过磁盘工具和grub在虚拟机上制作没有成,重启后gurb应该是生效了,但识别不了文件系统

  • 这个方法需要有先有制作好的镜像。使用虚拟机制作镜像总是失败。。。。没有讨论

关键点

  • 添加新硬盘应该使用IDE格式
  • 硬盘大小和镜像大小一致
  • 使用dd命令对拷镜像

后续

linux 使用fdisk 和 grub制作不成功的原因

磁盘的每个track的sectors数目是不同的

磁盘的记录方式有两种
旧的:非分区记录方式(不同的磁道的扇区数目相同)
新的:分区记录方式(不同磁道扇区数目不同)

VMwawre添加新串口

graph LR
编辑虚拟机设置-->添加
### TDA4VM U-Boot Configuration and Usage Tutorial For the Texas Instruments (TI) TDA4VM platform, configuring and using U-Boot involves several key steps to ensure proper initialization of the system before loading an operating system or application. The process starts with setting up the hardware correctly. Configuring SW8 and SW9 dip switches into SD card boot mode is essential as part of initial setup procedures[^1]. Once these settings are confirmed, inserting a properly prepared SD card that contains the necessary bootloader files including U-Boot will allow the board to start from this medium when powered on. After powering up the device successfully through the described method, accessing the command line interface typically requires logging in as `root` without needing additional credentials during development phases[^2]. To delve deeper specifically into U-Boot: #### Setting Up Environment Variables Environment variables within U-Boot play a critical role in defining how the bootloader operates. These can be set via commands directly at the U-Boot prompt after gaining access post-boot sequence completion. Commonly adjusted parameters include those specifying memory addresses where kernel images should reside once loaded along with other important configurations like IP address assignment methods for network operations if applicable. ```bash setenv ipaddr 192.168.0.10 setenv serverip 192.168.0.1 saveenv ``` These examples demonstrate basic networking environment variable assignments which might prove useful depending upon intended use cases involving remote file transfers over Ethernet connections between host machines and target boards running U-Boot. #### Loading Kernel Image Using TFTP Protocol Transferring binary payloads such as Linux kernels onto RAM buffers inside embedded systems often leverages protocols supported by U-Boot. One common approach employs Trivial File Transfer Protocol (TFTP), facilitating straightforward downloads initiated either manually or scripted automatically based on predefined paths stored among previously mentioned environmental properties. ```bash tftpboot ${loadaddr} /path/to/kernel.img go ${loadaddr} ``` This pair of instructions first fetches then executes code located remotely relative to what has been specified under `${loadaddr}` placeholder symbolizing destination location within volatile storage space allocated temporarily while executing tasks outside persistent filesystem contexts. #### Customizing Boot Arguments Passed To OS Kernels Tailoring arguments passed down ultimately influences behavior exhibited throughout subsequent stages following successful invocation past early-stage firmware layers managed hereunder control structures implemented natively alongside core functionalities provided out-of-the-box but extendable according to project requirements. ```bash setenv bootargs "console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw" bootm ${loadaddr} ``` Above snippet illustrates appending console output redirection together with designating active partition serving as root filesystem mount point besides read-write permissions flagging – all crucial aspects affecting overall performance characteristics observable later downstream processes contingent upon accurate parameterization applied upstream accordingly prior launch sequences commence execution flow transition points bridging low-level abstractions towards higher-order constructs embodied fully formed runtime environments ready hosting applications atop solid foundations laid meticulously beforehand ensuring stability reliability efficiency across diverse scenarios encountered field deployments real-world conditions varying widely case-by-case basis. --related questions-- 1. How does one customize U-Boot's default environment variables? 2. What tools are available for debugging issues related to U-Boot on TI platforms? 3. Can you provide guidance on integrating custom scripts into U-Boot for automated testing purposes? 4. Are there any specific considerations when updating U-Boot versions on TDA4VM devices?
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值