grub > _出现这个情况是 menu.ls 信息不对,很多的情况是因为你的分区表坏了很简单插入 live cd,试用模式,进入终端,可以选择修复 grub,也可以按照以下做法$ sudo -i # grub> find /grub/stage1 > root (hd0,8) /* 假设找到 hd0,8 */> setup (hd0)> quit# reboot Read More
posted @ 2013-04-07 22:03 moon_cat Views(213) Comments(0) Diggs(0)
> ls (找到 /boot )x未单独分 /boot 区,假设一块 harddisk > set root=(hd0,x)> set prefix=(hd0,x)/boot/grub> insmod /boot/grub/normal.mod> normal单独分区 /boot 假设 (hd0,y)> set root=(hd0,y)> set prefix=(hd0,y)/grub> insmod /grub/normal.mod> normal进入 ubuntu 后,终端修复 grub $ sudo -i # update-grub# Read More
posted @ 2013-04-07 21:53 moon_cat Views(151) Comments(0) Diggs(0)
插入livecd 在出现ubuntu logo的时候按方向右键,选择试用进入终端 # sudo -i # fdisk -l 找到所在 / 区 ( 假设/dev/sda10) ,找到/boot 如果有的话 (/dev/sda8),如果有 /usr /var 也有的话,依次mount# mount /dev/sda10 /mnt# mount /dev/sda8 /mnt/boot# mount --bind /sys /mnt/sys# mount --bind /proc /mnt/proc# mount --bind /dev /mnt/dev# chroot /mnt # update-g Read More
posted @ 2013-04-07 21:40 moon_cat Views(215) Comments(0) Diggs(0)
今天将以前在windows ADS上写好的一些裸机程序用linux + arm-linux tools 移植到 TQ2440上,刚弄第一个 LED,就卡住了,main.c 不加任何修改 #define rGPBCON (*(volatile unsigned *)0x56000010) //Port B control #define rGPBDAT (*(volatile unsigned *)0x56000014) //Port B data #define rGPBUP (*(volatile unsigned *)0x56000018) //Pull-up control B stat Read More
posted @ 2013-04-07 00:01 moon_cat Views(267) Comments(0) Diggs(0)