Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 46958

Re: exportfs: /anyfolder does not support NFS export

$
0
0
marcint43 Wrote:
-------------------------------------------------------
>
> Marvell>> printenv 
> bootargs=console=ttyS0,115200
> mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en
> v),0x80000(key_store),0x80000(info),0xA00000(etc),
> 0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ker
> nel_2),0x2FC0000(rootfs2) root=/dev/nfs rw
> init=/init
> bootdelay=2
> baudrate=115200
> loads_echo=0
> ipaddr=10.4.52.165
> serverip=10.4.52.7
> rootpath=/srv/ubuntu
> netmask=255.255.255.0
> nandEcc=1bit
> MODEL_ID=AE03
> PRODUCT_NAME=NSA-325v2
> FEATURE_BIT=00
> CONTRY_TYPE=FF
> VENDOR_NAME=MitraStar Technology Corp.
> run_diag=yes
> console=console=ttyS0,115200
> mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x1
> 00000(root)
> ethprime=egiga0
> bootargs_root=root=/dev/nfs rw
> bootargs_end=:::DB88FXX81:eth0:none
> image_name=uImage
> standalone=fsload 0x2000000 $(image_name);setenv
> bootargs $(console) root=/dev/mtdblock0 rw
> ip=$(ipaddr):$(serverip)$(bootargs_end)
> $(mvPhoneConfig); bootm 0x2000000;
> lcd0_enable=0
> lcd0_params=640x480-16@60
> ethaddr=00:50:43:00:02:02
> ethmtu=1500
> mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fx
> o
> mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2
> :3),mtu=1500
> usb0Mode=host
> yuk_ethaddr=00:00:00:EE:51:81
> netretry=no
> rcvrip=169.254.100.100
> loadaddr=0x02000000
> autoload=no
> image_multi=yes
> ethact=egiga0
> arcNumber=4495
> bootargs_stock=console=ttyS0,115200
> mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en
> v),0x80000(key_store),0x80000(info),0xA00000(etc),
> 0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ker
> nel_2),0x2FC0000(rootfs2) root=/dev/nfs rw
> init=/init
> bootargs_linux=console=ttyS0,115200
> mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_en
> v),0x80000(key_store),0x80000(info),0xA00000(etc),
> 0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(ker
> nel_2),0x2FC0000(rootfs2) root=LABEL=rootfs
> loglevel=8
> bootcmd_linux=setenv bootargs $(bootargs_linux);
> mw.l f1010100 0020c000; usb reset; ext2load usb
> 0:1 $(loadaddr) /uImage; ext2load usb 0:1
> 0x01100000 /uInitrd; bootm $(loadaddr) 0x01100000
> bootcmd_stock=setenv bootargs $(bootargs_stock);
> nand read.e $(loadaddr) $(kernel_addr) 0xA00000;
> bootm $(loadadr)
> to_stock=setenv mainlineLinux no; setenv bootcmd
> \'run bootcmd_stock\'; saveenv; reset
> to_linux=setenv mainlineLinux yes; setenv bootcmd
> \'run bootcmd_linux\'; saveenv; reset
> bootcmd='run bootcmd_linux'
> stdin=serial
> stdout=serial
> stderr=serial
> mainlineLinux=yes
> enaMonExt=no
> enaCpuStream=no
> enaWrAllo=no
> pexMode=RC
> disL2Cache=no
> setL2CacheWT=yes
> disL2Prefetch=yes
> enaICPref=yes
> enaDCPref=yes
> sata_dma_mode=yes
> netbsd_en=no
> vxworks_en=no
> disaMvPnp=no
> enaAutoRecovery=yes
> kernel_addr=0xc80000
> pcieTune=no
> pcieTune1=no
> 
> Environment size: 2497/131068 bytes
> Marvell>>
> 
> Marvell>> saveenv 
> Saving Environment to NAND...
> Erasing Nand...Writing to Nand... done
> Marvell>>
> 
>
>
>
> root@debian:~# fw_printenv 
> Warning: Bad CRC, using default environment
> bootcmd=bootp; setenv bootargs root=/dev/nfs
> nfsroot=${serverip}:${rootpath}
> ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:$
> {hostname}::off; bootm
> bootdelay=5
> baudrate=115200
> 
> root@debian:~# exportfs -a
> exportfs: /usr/src does not support NFS export
>
You 're not done with your rootfs yet. Look at /etc/fw_env.config. Address needs to be consistent with the UBoot env address that uBoot expects. My rootfs is for most Kirkwood plugs that default to 0xC0000. Your stock uBoot might be different.

Viewing all articles
Browse latest Browse all 46958

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>