ДЕнь добрый!
Собрал ембедед систему под at91sam9260 все собралось отлично.
залил, гружусь, приглошение зарегатся в сисетме ввожу рут, пароля нет - в результате входа не осуществлен и опять приглошение зарегаться :(
Где пробелма может быть зарыта?
лог
| Код |
U-Boot 1.2.0 (Mar 17 2008 - 10:26:49)
DRAM: 32 MB SST : 39VF3201 Flash: 4 MB In: serial Out: serial Err: serial End of Autonegotiation Hit any key to stop autoboot: 0 U-Boot> tftp 20500000 fs.bin TFTP from server 172.25.104.7; our IP address is 172.25.104.133 Filename 'fs.bin'. Load address: 0x20500000 Loading: ################################################################# ################################################################# ################################################################# ################################################################ done Bytes transferred = 1323639 (143277 hex) U-Boot> printenv BootEnv_FLASH=0x10001000 BootEnv_END=0x10001FFF baudrate=115200 Bootstrap_Size=00 Bootloader_Size=0 ethaddr=00:05:F4:11:22:33 Bootstrap_FLASH=0x10000000 Bootloader_FLASH=0x10002000 OS_FLASH=0x1001E000 FileSystem_FLASH=0x10168000 Config_FLASH=0x103E8000 Bootstrap_END=0x10000FFF Bootloader_END=0x1001DFFF OS_END=0x10167FFF FileSystem_END=0x103E7FFF Config_END=0x103FFFFF Download_SDRAM=0x20000000 OS_SDRAM=0x20000000 FileSystem_SDRAM=0x20500000 bootdelay=1 Bootstrap_Version=20b Bootloader_Version=21a OS_Version=21a FileSystem_Version=20c Config_Version=20a bootcmd=cp.b ${OS_FLASH} ${OS_SDRAM} 0x14A000; cp.b ${FileSystem_FLASH} ${FileSystem_SDRAM} 0x280000; bootm ${OS_SDRAM} ${FileSystem_SDRAM} console=ttyS0,115200 bootargs=root=/dev/ram rw console=ttyS0,115200,mem=32M Config_Size=00000 FileSystem_Size=000 OS_Size=dr=20000000 stdin=serial stdout=serial stderr=serial filesize=143277 fileaddr=20500000 gatewayip=192.168.0.1 netmask=255.255.255.0 ipaddr=ччч.чч.104.133 serverip=ччч.чч.104.7
Environment size: 995/4092 bytes U-Boot> cp.b ${OS_FLASH} ${OS_SDRAM} 0x14A000 U-Boot> bootm ${OS_SDRAM} ${FileSystem_SDRAM} ## Booting image at 20000000 ... Image Name: Linux-2.6.25.10 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1147932 Bytes = 1.1 MB Load Address: 20008000 Entry Point: 20008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 20500000 ... Image Name: ps v.0.1 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 1323575 Bytes = 1.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK
Starting kernel ...
Uncompressing Linux.......................................................................... done, booting the kernel. Linux version 2.6.25.10 (sasha@redhat) (gcc version 4.1.2) #5 PREEMPT Fri Jul 4 14:29:10 YEKST 2008 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 Machine: Atmel AT91SAM9260-EK Memory policy: ECC disabled, Data cache writeback Clocks: CPU 198 MHz, master 99 MHz, main 18.432 MHz CPU0: D VIVT write-back cache CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 Kernel command line: root=/dev/ram rw console=ttyS0,115200,mem=32M AT91: 96 gpio irqs in 3 banks PID hash table entries: 128 (order: 7, 512 bytes) console [ttyS0] enabled Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 32MB = 32MB total Memory: 28812KB available (2084K code, 141K data, 108K init) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok net_namespace: 152 bytes NET: Registered protocol family 16 SCSI subsystem initialized NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 1292K io scheduler noop registered io scheduler cfq registered (default) atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL brd: module loaded loop: module loaded MACB_mii_bus: probed eth0: Atmel MACB at 0xfffc4000 irq 21 (00:05:f4:11:22:33) eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1) Driver 'sd' needs updating - please use bus_type methods i2c /dev entries driver MMC: Setting controller bus width to 1 Added MCI driver MMC: Setting controller bus width to 1 MMC: Setting controller bus width to 1 MMC: Setting controller bus width to 1 MMC: Setting controller bus width to 1 TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 MMC: Setting controller bus width to 1 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). Freeing init memory: 108K
FIRMA ROGA&KOPITA Kernel-2.6.24 penguin login: root
FIRMA ROGA&KOPITA Kernel-2.6.24 penguin login: root
FIRMA ROGA&KOPITA Kernel-2.6.24 penguin login:
|
файл passwd
chaos@penguin:~/Work/ARM9/buildroot/project_build_arm/at91sam9260/root/etc> cat passwd
| Код |
root::0:0:root:/root:/bin/sh daemon:x:1:1:daemon:/usr/sbin:/bin/sh bin:x:2:2:bin:/bin:/bin/sh sys:x:3:3:sys:/dev:/bin/sh sync:x:4:100:sync:/bin:/bin/sync mail:x:8:8:mail:/var/spool/mail:/bin/sh proxy:x:13:13:proxy:/bin:/bin/sh www-data:x:33:33:www-data:/var/www:/bin/sh backup:x:34:34:backup:/var/backups:/bin/sh operator:x:37:37:Operator:/var:/bin/sh haldaemon:x:68:68:hald:/:/bin/sh dbus:x:81:81:dbus:/var/run/dbus:/bin/sh nobody:x:99:99:nobody:/home:/bin/sh sshd:x:103:99:Operator:/var:/bin/sh default:x:1000:1000:Default non-root user:/home/default:/bin/sh
|
файл shadow
chaos@penguin:~/Work/ARM9/buildroot/project_build_arm/at91sam9260/root/etc> cat shadow
| Код |
root::10933:0:99999:7::: bin:*:10933:0:99999:7::: daemon:*:10933:0:99999:7::: adm:*:10933:0:99999:7::: lp:*:10933:0:99999:7::: sync:*:10933:0:99999:7::: shutdown:*:10933:0:99999:7::: halt:*:10933:0:99999:7::: uucp:*:10933:0:99999:7::: operator:*:10933:0:99999:7::: nobody:*:10933:0:99999:7::: default::10933:0:99999:7:::
|
и на всякий случай initab
| Код |
# Startup the system null::sysinit:/bin/mount -o remount,rw / null::sysinit:/bin/mount -t proc proc /proc null::sysinit:/bin/mount -a null::sysinit:/bin/hostname -F /etc/hostname null::sysinit:/sbin/ifconfig lo 127.0.0.1 up null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo # now run any rc scripts ::sysinit:/etc/init.d/rcS
# Set up a couple of getty's #tty1::respawn:/sbin/getty 38400 tty1 #tty2::respawn:/sbin/getty 38400 tty2
# Put a getty on the serial port ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
# Logging junk null::sysinit:/bin/touch /var/log/messages null::respawn:/sbin/syslogd -n -m 0 null::respawn:/sbin/klogd -n ttyS1::respawn:/usr/bin/tail -f /var/log/messages
# Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting null::shutdown:/usr/bin/killall klogd null::shutdown:/usr/bin/killall syslogd null::shutdown:/bin/umount -a -r null::shutdown:/sbin/swapoff -a
|
использовал
busybox-1.11.0
нашел еще такие записи(это появляется на ttyS1 после того как я пытаюсь залогинится на ttyS0)
Dec 31 17:01:03 (none) auth.info login[120]: root login on 'ttyS0'
Dec 31 17:01:03 (none) daemon.info init: init: process '/sbin/getty -L ttyS0 115200 vt100' (pid 120) exited. Scheduling for restart.
Dec 31 17:01:03 (none) daemon.info init: init: starting pid 123, tty '/dev/ttyS0': '/sbin/getty -L ttyS0 115200 vt100'
:( что происходит с системой :'(
ейчас закоментил некоторые строчки в inittab
| Код |
# Startup the system null::sysinit:/bin/mount -o remount,rw / null::sysinit:/bin/mount -t proc proc /proc null::sysinit:/bin/mount -a null::sysinit:/bin/hostname -F /etc/hostname null::sysinit:/sbin/ifconfig lo 127.0.0.1 up null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo # now run any rc scripts ::sysinit:/etc/init.d/rcS
# Set up a couple of getty's #tty1::respawn:/sbin/getty 38400 tty1 #tty2::respawn:/sbin/getty 38400 tty2
# Put a getty on the serial port ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
# Logging junk #null::sysinit:/bin/touch /var/log/messages #null::respawn:/sbin/syslogd -n -m 0 #null::respawn:/sbin/klogd -n #ttyS1::respawn:/usr/bin/tail -f /var/log/messages
# Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting null::shutdown:/usr/bin/killall klogd null::shutdown:/usr/bin/killall syslogd null::shutdown:/bin/umount -a -r null::shutdown:/sbin/swapoff -a
|
при вооде имени пользователя(root)
появляется инормация о входи и опять сбрасывает :(
Kernel-2.6.24
(none) login: root
Dec 31 17:00:09 login[114]: root login on 'ttyS0'
(none) login: root
Dec 31 17:01:09 login[115]: root login on 'ttyS0'
(none) login: root
Dec 31 17:01:11 login[116]: root login on 'ttyS0'
все это происходит на всех трех портах причем при попытки залогинится на какой-нибудь из терминалов на другом вываливается надпись:
Dec 31 17:00:39 login[117]: root login on 'ttyS0'
начинаю подумывать что дело не в софте :( тогда в чем???
Подскажите пожалуйста куда копать, 2ой день мучаюсь
Это сообщение отредактировал(а) chaos - 7.7.2008, 18:54