nfsroot-cmdline.patch 1.3 KB

123456789101112131415161718192021222324252627282930
  1. diff -Nur linux-3.10-nds32.orig/arch/nds32/boot/dts/ag101p.dts linux-3.10-nds32/arch/nds32/boot/dts/ag101p.dts
  2. --- linux-3.10-nds32.orig/arch/nds32/boot/dts/ag101p.dts 2017-07-31 07:41:18.000000000 +0200
  3. +++ linux-3.10-nds32/arch/nds32/boot/dts/ag101p.dts 2017-10-03 09:56:16.654394267 +0200
  4. @@ -7,7 +7,7 @@
  5. chosen {
  6. /* bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0x99600000 debug bootmem_debug memblock=debug loglevel=7"; */
  7. - bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0x99600000 debug loglevel=7";
  8. + bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0x99600000 debug loglevel=7 rw root=/dev/nfs ip=dhcp";
  9. };
  10. memory@0 {
  11. diff -Nur linux-3.10-nds32.orig/include/linux/etherdevice.h linux-3.10-nds32/include/linux/etherdevice.h
  12. --- linux-3.10-nds32.orig/include/linux/etherdevice.h 2016-09-06 11:38:23.000000000 +0200
  13. +++ linux-3.10-nds32/include/linux/etherdevice.h 2017-10-06 07:28:40.004142545 +0200
  14. @@ -154,7 +154,13 @@
  15. */
  16. static inline void eth_random_addr(u8 *addr)
  17. {
  18. - get_random_bytes(addr, ETH_ALEN);
  19. + //get_random_bytes(addr, ETH_ALEN);
  20. + addr[0] = 0xB8;
  21. + addr[1] = 0x27;
  22. + addr[2] = 0xEB;
  23. + addr[3] = 0x91;
  24. + addr[4] = 0x8F;
  25. + addr[5] = 0xAA;
  26. addr[0] &= 0xfe; /* clear multicast bit */
  27. addr[0] |= 0x02; /* set local assignment bit (IEEE802) */
  28. }