当前位置:首页 » 币种行情 » ubooteth0speed10m

ubooteth0speed10m

发布时间: 2023-07-21 23:51:01

1. tp4310用TTL线修复,怎么进不了uboot模式

发现原因了,数据发送这根线接触不良。弄好后可刷机。可最后把uboot刷坏了,ttl也无法修复了,这下全完了!!:'(:'(

2. 求助 关于uboot.BIN 烧写uImage到开发板的内存中

直接文件系统列举吧烧写uboot、内核及文件系统 :1、uboot烧写

载Uboot两步骤第步uboot载系统扩展RAM并运行第二步通内存运行uboot整uboot载内存再烧写nandflash

第步 载uboot扩展RAM

首先使用短路块选择系统内部启复位或者电串口软件(115200 8 n 1)看打印信息LPC31xx READY FOR PLAIN IMAGE>使用串口软件发送文件选择发送u-boot-init.bin再发送u-boot.binRAM启uboot打印输启信息并进行倒计发送任意字符给系统停止计关闭串口软件使用超级终端连接系统

第二步 烧写ubootnandflash

超级终端输入loady命令再使用传送/发送文件选择Ymodem协议发送u-boot.bin接收完先擦除nand erase全擦掉(用给参数)使用使用参数指定区域般第要全擦使用nand_paramsflash信息写入其使用nand write 0x30001000 0x4000 0x100000

其0x30001000 uboot内存址;

0x4000 ubootflash存放起始址需要根据实际区情况定;

0x100000 uboot于实际;

至uboot写入nandflash短路跳线掉使其nandflash启

2、内核烧写

uboot启倒计击任意键停止输入loady与uboot烧写相似使用命令主要:nand erase 0x200000(址) 0x200000()

nand write 0x30001000 0x200000 0x200000

3、文件系统烧写

文件系统烧写通与内核相似使用串口烧写通挂载nfs使用mtd_debug 工具烧写由于文件系统较使用第种式慢些

串口烧写使用命令

loady

nand erase 0x600000 0x3a00000(目前区情况)

nand write 0x30001000 0x600000 0x800000(实际)

使用nfs烧写用命令

mtd_debug erase /dev/mtd2 0 0x3a00000

mtd_debug write /dev/mtd2 0 0x800000 ubi.img

各项含义参考mtd_debug 帮助直接mtd_debug 即获取说明其len使用十进制数uboot加0x认十六进制

4、启挂载文件系统选项

uboot通环境变量设置启选项般需要配置挂载文件系统nfsubi及内核启选项

挂载nanflashubifs:

setenv bootargs console=ttyS0,115200n8 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs;

挂载129.1.4.199/rfs/rootfs并且本机ip设129.1.31.33等:

setenv bootargs noinitrd root=/dev/nfs console=ttyS0,115200n8 nfsroot=129.1.4.199:/rfs/rootfs,proto=tcp,nfsvers=3,nolock ip=129.1.31.33:129.1.4.199:129.1.88.1:255.255.0.0::eth0:off

启内核选项:

setenv bootcmd nand read 0x30001000 0x200000 0x200000\; bootm 0x30001000\;

修改uboot环境变量都需要saveenv命令保存修改

3. 在ubuntu下使用什么工具对uboot及内核进行烧写

tftp比较通用的 网络烧写 DNW USB烧写

4. linux下Uboot终端命令行参数输入过长

修改成这样试试(用分割了一下)

setenvbootargs"root=/dev/nfsnfsroot=192.168.1.118:
/root/work/nfsip=192.168.0.119:192.168.1.118:192.168.1.1:
255.255.255.0:witech.com.cn:eth0:offconsole=ttySAC2,115200"

5. 我的友善之臂micro2440开发板,烧写uboot和Linux内核后我想设置nfs网络根文件系统,但是一直有问题。

linux-2.6.35在fs2410开发板启动后,通过nfs挂载文件系统,但是rtc不能用,也会在挂载文件系统之前打印如下提示信息:

TCP cubic registered

NET: Registered protocol family 1

RPC: Registered udp transport mole.

RPC: Registered tcp transport mole.

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

IP-Config: Complete:

device=eth0, addr=192.168.20.253, mask=255.255.255.0, gw=192.168.20.1,
host=thomas_fs2410, domain=, nis-domain=(none),
bootserver=192.168.20.192, rootserver=192.168.20.192, rootpath=
Looking up port of RPC 100003/2 on 192.168.20.192
Looking up port of RPC 100005/1 on 192.168.20.192
VFS: Mounted root (nfs filesystem).
Mounted devfs on /dev
Freeing init memory: 184K

解决方案:

1. 内核配置选项

--- Real Time Clock
[*] Set system time from RTC on startup and resume
(rtc0) RTC used to set the system time
[ ] RTC debug support
*** RTC interfaces ***
[*] /sys/class/rtc/rtcN (sysfs)
[*] /dev/rtcN (character devices)
[ ] RTC UIE emulation on dev interface
*** on-CPU RTC drivers ***
<*> Samsung S3C series SoC RTC

2. linux kernel 中 已经支持S3C2410的RTC,但是并没有添加到平台设备初始化数组中,所以系统启动时并不会初始化这一部分,需要修改文件mach-smdk.c

static struct platform_device *smdk2410_devices[] __initdata = {
&s3c_device_ohci,
&s3c_device_lcd,
&s3c_device_wdt,
&s3c_device_i2c0,
&s3c_device_iis,
&s3c_device_rtc, //新增代码
};

3. 创建设备节点,在文件系统/dev目录下执行:

sudo mknod rtc c 10 135

4. 重新编译内核,查看启动信息

S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0

这里说明rtc驱动起来可以正常工作了
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
ALSA device list:
No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
s3c-rtc s3c2410-rtc: hctosys: invalid date/time

以上信息说明当前 RTC 时间invalid , RTC 初始时间为 Wed Dec 31 23:59:59 1969 ;

从内核函数 int rtc_valid_tm(struct rtc_time *tm) ,可以看出,当 year 小于 1970 时,认为是时间 invalid ,函数返回 -EINVAL ;

drivers/rtc/rtc-lib.c

/*
* Does the rtc_time represent a valid date/time?
*/
int rtc_valid_tm(struct rtc_time *tm)
{
if (tm->tm_year < 70
|| ((unsigned)tm->tm_mon) >= 12
|| tm->tm_mday < 1
|| tm->tm_mday > rtc_month_days(tm->tm_mon, tm->tm_year + 1900)
|| ((unsigned)tm->tm_hour) >= 24
|| ((unsigned)tm->tm_min) >= 60
|| ((unsigned)tm->tm_sec) >= 60)
return -EINVAL;

return 0;
}
EXPORT_SYMBOL(rtc_valid_tm);

下面来验证一下这个想法

# hwclock

Wed Dec 31 23:59:59 1969 0.000000 seconds

# date

Thu Jan 1 00:06:58 UTC 1970

系统时间是通过 date 来设置的, RTC 时间是通过 hwclock 来设置的。开机时系统时间首先通过 RTC 来获得,RTC没有设置时,系统时间也会使用Wed Dec 31 23:59:59 1969。

# hwclock --help

BusyBox v1.9.2 (2008-04-01 21:32:34 CST) multi-call binary

Usage: hwclock [-r|--show] [-s|--hctosys] [-w|--systohc] [-l|--localtime] [-u|--utc] [-f FILE]

Query and set a hardware clock (RTC)

Options:

-r Read hardware clock and print result

-s Set the system time from the hardware clock

-w Set the hardware clock to the system time

-u The hardware clock is kept in coordinated universal time

-l The hardware clock is kept in local time

-f FILE Use the specified clock (e.g. /dev/rtc2)

# hwclock -s

hwclock: settimeofday() failed: Invalid argument

# hwclock -w

s3c2410-rtc s3c2410-rtc: rtc only supports 100 years

hwclock: RTC_SET_TIME: Invalid argument

以上错误信息都是因为 year 设置不当引起的。没有设置 RTC , RTC 也不会启动计时。

下面首先设置正确的系统时间,然后将系统时间传递给 RTC 。

# date 040612282008.20

Sun Apr 6 12:28:20 UTC 2008

# hwclock -w

# hwclock

Sun Apr 6 12:29:01 2008 0.000000 seconds

# hwclock

Sun Apr 6 12:30:15 2008 0.000000 seconds

Ok , RTC 开始工作了!

为了使系统时间和 RTC 时间同步,可以在初始化文件中添加命令

Hwclock –s

使每次开机时读取 RTC 时间,并同步给系统时间。

在 etc/init.d/rcS 中添加

/bin/hwclock -s

时间设置的相关命令(转载)

1. 在虚拟终端中使用date 命令来查看和设置系统时间
查看系统时钟的操作:
# date

设置系统时钟的操作:
# date 091713272003.30

通用的设置格式:
# date 月日时分年. 秒

2. 使用hwclock 或clock 命令查看和设置硬件时钟
查看硬件时钟的操作:
# hwclock --show 或
# clock --show
2003年 09月 17日 星期三 13 时24 分11 秒 -0.482735 seconds

设置硬件时钟的操作:
# hwclock --set --date="09/17/2003 13:26:00"

或者
# clock --set --date="09/17/2003 13:26:00"

通用的设置格式:hwclock/clock --set --date=“ 月/ 日/ 年时:分:秒” 。

3. 同步系统时钟和硬件时钟

Linux 系统( 笔者使用的是Red Hat 8.0 ,其它系统没有做过实验) 默认重启后,硬件时钟和系统时钟同步。如果不大方便重新启动的话( 服务器通常很少重启) ,使用clock 或hwclock 命令来同步系统时钟和硬件时钟。

硬件时钟与系统时钟同步:
# hwclock --hctosys

或者
# clock --hctosys

上面命令中,--hctosys 表示Hardware Clock to SYStem clock 。

系统时钟和硬件时钟同步:
# hwclock --systohc

或者
# clock --systohc

使用图形化系统设置工具设置时间

参考:http://blogold.chinaunix.net/u2/63560/showart_518707.html

6. openwrt系统中,uboot在引导内核和挂载文件系统的时候出现问题,跪求大侠指点!!

VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6

看起来是文件系统的问题

热点内容
区块链数字水印 发布:2025-06-23 03:56:48 浏览:324
挖比特币需要多久 发布:2025-06-23 03:53:03 浏览:549
比特币换多个地址 发布:2025-06-23 03:35:16 浏览:715
eth转账数量 发布:2025-06-23 03:21:21 浏览:448
bittrex是否分btc糖果 发布:2025-06-23 03:10:46 浏览:25
区块链研究分析师 发布:2025-06-23 03:09:32 浏览:372
比特币行情走k线 发布:2025-06-23 03:09:24 浏览:280
以太坊最多多持有者 发布:2025-06-23 02:58:10 浏览:342
平安区块链链怎么注册 发布:2025-06-23 02:54:35 浏览:912
19年可投资比特币吗 发布:2025-06-23 02:44:06 浏览:483