NFS montage

NFS montage - Logiciels - Linux et OS Alternatifs

Marsh Posté le 28-04-2009 à 17:02:46    

Bonjour,  
 
Je dois installer une carte ep8555 (powerquicc) avec un noyau Linux dessus.
Tout se passe bien jusqu'au moment où je dois utiliser NFS pour mettre des repertoires dessus.  
Je me connecte avec Uboot sur Linux à la carte et je tape ces commandes pour obtenir le noyau linux avec NFS:  
> tftpboot 0x300000 zImage.gz
> bootm 0x300000
 
voici ce qu'il me dit :  

Code :
  1. ep=> bootm 0x300000
  2. ## Booting image at 00300000 ...
  3.    Image Name:   Linux-2.6.15-rc3
  4.    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  5.    Data Size:    1110748 Bytes =  1.1 MB
  6.    Load Address: 00000000
  7.    Entry Point:  00000000
  8.    Verifying Checksum ... OK
  9.    Uncompressing Kernel Image ... OK
  10. Memory CAM mapping: CAM0=64Mb, CAM1=64Mb, CAM2=0Mb residual: 0Mb
  11. Linux version 2.6.15-rc3 (ep8555m@bouvet) (gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)) #2 Tue Apr 28 16:05:25 CEST 2009
  12. Built 1 zonelists
  13. Kernel command line: console=ttyCPM0,115200=root=/dev/nfs=rw=ip=192.168.9.20:::255.255.255.0::eth0=nfsroot=192.168.9.1:/opt/embedded/tools/ppc_85xx
  14. OpenPIC Version 1.2 (1 CPUs and 60 IRQ sources) at fcf7d000
  15. PID hash table entries: 1024 (order: 10, 16384 bytes)
  16. Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
  17. Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
  18. Memory: 127232k available (1936k kernel code, 492k data, 124k init, 0k highmem)
  19. Mount-cache hash table entries: 512
  20. NET: Registered protocol family 16
  21. PCI: Probing PCI hardware
  22. usbcore: registered new driver usbfs
  23. usbcore: registered new driver hub
  24. Generic PHY: Registered new driver
  25. SCSI subsystem initialized
  26. Initializing Cryptographic API
  27. io scheduler noop registered
  28. io scheduler anticipatory registered
  29. io scheduler deadline registered
  30. io scheduler cfq registered
  31. usbmon: debugfs is not available
  32. Initializing USB Mass Storage driver...
  33. usbcore: registered new driver usb-storage
  34. USB Mass Storage support registered.
  35. usbcore: registered new driver usbhid
  36. drivers/usb/input/hid-core.c: v2.6:USB HID core driver
  37. Generic RTC Driver v1.07
  38. Serial: CPM driver $Revision: 0.01 $
  39. ttyCPM0 at MMIO 0xfdfd1a00 (irq = 40) is a CPM UART
  40. RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
  41. loop: loaded (max 8 devices)
  42. Ethernet Channel Bonding Driver: v2.6.5 (November 4, 2005)
  43. bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details.
  44. Gianfar MII Bus: probed
  45. eth0: Gianfar Ethernet Controller Version 1.2, 00:10:ec:00:d3:e1
  46. eth0: Running with NAPI enabled
  47. eth0: 256/256 RX/TX BD ring size
  48. eth1: Gianfar Ethernet Controller Version 1.2, 00:10:ec:80:d3:e1
  49. eth1: Running with NAPI enabled
  50. eth1: 256/256 RX/TX BD ring size
  51. i2c /dev entries driver
  52. NET: Registered protocol family 2
  53. IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
  54. TCP established hash table entries: 8192 (order: 3, 32768 bytes)
  55. TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
  56. TCP: Hash tables configured (established 8192 bind 8192)
  57. TCP reno registered
  58. TCP bic registered
  59. NET: Registered protocol family 1
  60. NET: Registered protocol family 17
  61. Root-NFS: No NFS server available, giving up.
  62. VFS: Unable to mount root fs via NFS, trying floppy.
  63. VFS: Cannot open root device "<NULL>" or unknown-block(2,0)
  64. Please append a correct "root=" boot option
  65. Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
  66. <0>Rebooting in 180 seconds..�


 
 
Mon fichier fstab sur la machine qui sert à booter la carte :  

Code :
  1. /etc/fstab :
  2. /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
  3. LABEL=/boot             /boot                   ext3    defaults        1 2
  4. tmpfs                   /dev/shm                tmpfs   defaults        0 0
  5. devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
  6. sysfs                   /sys                    sysfs   defaults        0 0
  7. proc                    /proc                   proc    defaults        0 0
  8. /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
  9. 192.168.9.3:/home/svn/DEV/aintercom_sharing /media/aintercom_partage nfs user,noauto


 
et enfin la configuration de ma carte sur Uboot (printenv)
 

Code :
  1. ep=> printenv
  2. bootdelay=10
  3. baudrate=115200
  4. loads_echo=1
  5. rootpath=/nfsroot
  6. bootfile=your.uImage
  7. loadaddr=200000
  8. ethaddr=00:10:ec:00:d3:e1
  9. eth1addr=00:10:ec:80:d3:e1
  10. myb=tftpboot 0x300000 rImage.gz;bootm
  11. hostname=belle_ile
  12. ethact=TSEC0
  13. mybb=tftpboot 0x300000 zImage.gz
  14. filesize=109a6b
  15. fileaddr=300000
  16. gatewayip=192.168.9.7
  17. netmask=255.255.255.0
  18. bootargs=console=ttyCPM0,115200=root=/dev/nfs=rw=ip=192.168.9.20:::255.255.255.0::eth0=nfsroot=192.168.9.1:/opt/embedded/tools/ppc_85xx
  19. serverip=192.168.9.7
  20. ipaddr=192.168.9.20
  21. stdin=serial
  22. stdout=serial
  23. stderr=serial
  24. Environment size: 547/8188 bytes

Reply

Marsh Posté le 28-04-2009 à 17:02:46   

Reply

Marsh Posté le 14-05-2009 à 08:52:49    

Résolu, mauvaise syntax du bootargs :  
 
Nouvelle syntaxe :  
bootargs=console=ttyCPM0,115200 root=/dev/nfs rw ip=192.168.9.20:::255.255.255.0::eth0 nfsroot=192.168.9.1:/opt/embedded/tools/ppc_85xx

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed