Ability to add extra Linux kernel parameters August 12, 2014 09:08AM |
Registered: 9 years ago Posts: 25 |
zswap.enabled=1Is there a good way to specify that in uboot?
Re: Ability to add extra Linux kernel parameters August 12, 2014 12:45PM |
Registered: 11 years ago Posts: 232 |
Re: Ability to add extra Linux kernel parameters August 12, 2014 03:15PM |
Admin Registered: 12 years ago Posts: 17,907 |
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_custom_params=zswap.enabled=1
Re: Ability to add extra Linux kernel parameters August 12, 2014 04:55PM |
Registered: 9 years ago Posts: 25 |
Re: Ability to add extra Linux kernel parameters August 14, 2014 03:55AM |
Registered: 9 years ago Posts: 25 |
setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts' boot
arcNumber=3960 baudrate=115200 bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=3 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=00:25:31:03:91:1e if_netconsole=ping $serverip ipaddr=192.168.0.240 led_error=orange blinking led_exit=green off led_init=green blinking machid=F78 mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) ncip=192.168.0.201 partition=nand0,2 preboot=run if_netconsole start_netconsole preboot_nc=run if_netconsole start_netconsole rootdelay=10 rootfstype=ext4 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 serverip=192.168.0.201 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console= root= rootdelay= rootfstype= zswap.enabled=1 start_netconsole=setenv ncip $serverip; setenv bootdelay 3; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=nc stdin=nc stdout=nc usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_custom_params=zswap.enabled=1 usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 usb_rootfstype=ext2
Re: Ability to add extra Linux kernel parameters August 14, 2014 04:19AM |
Registered: 9 years ago Posts: 25 |
setenv set_bootargs_usb setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdpartsTo this
setenv set_bootargs_usb setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdpartsAnd it started right up. Anyhow, I'd really prefer to get the options working in uEnv.txt if I could. WarheadSE, perhaps you could test getting zswap going on your system? No matter what I tried, I couldn't get it to even acknowledge /boot/uEnv.txt.
Re: Ability to add extra Linux kernel parameters August 14, 2014 07:03AM |
Registered: 11 years ago Posts: 232 |
Re: Ability to add extra Linux kernel parameters August 14, 2014 07:19AM |
Registered: 9 years ago Posts: 25 |
Re: Ability to add extra Linux kernel parameters August 14, 2014 09:17AM |
Admin Registered: 12 years ago Posts: 17,907 |
Re: Ability to add extra Linux kernel parameters August 14, 2014 11:17AM |
Registered: 10 years ago Posts: 149 |
arcNumber=3960 baudrate=115200 bootcmd=setenv bootargs console=ttyS0,$baudrate root=LABEL=ROOT rootdelay=$bootdelay rootfstype=ext3 $mtdparts; run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=mmc rescan; mw 0x800000 0 1; ext2load mmc 0:1 0x800000 /boot/uImage; if ext2load mmc 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd_sata=ide reset; mw 0x800000 0 1; ext2load ide 0:1 0x800000 /boot/uImage; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd_usb=usb start; mw 0x800000 0 1; ext2load usb 0:1 0x800000 /boot/uImage; if ext2load usb 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootdelay=3 ethact=egiga0 led_error=orange blinking led_exit=green off led_init=green blinking machid=f78 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),-(root) preboot_nc=if ping $serverip; then setenv ncip $serverip; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; fi stderr=serial stdin=serial stdout=serial
(%3)(11:13)(punk)/home/tftp> cat /etc/fstab LABEL=ROOT / ext3 noatime,errors=remount-ro 0 1 LABEL=HOME /home ext4 defaults 0 0 /swap none swap sw,pri=0 0 0
Re: Ability to add extra Linux kernel parameters August 14, 2014 03:13PM |
Admin Registered: 12 years ago Posts: 17,907 |