46 CONTENTS
usbcore.usbfs_memory_mb=256
How this can be done depends on the system bootloader. For systems using the GRUB2 bootloader the
"/etc/default/grub" ( or in some distributions "/etc/default/grub/c.cfg" ) file has to be modi-
fied.
Warning
Always modify configuration files with extreme caution, since the slightest syntax error may render the file
invalid, or even the computer not bootable!
After opening this file, the GRUB_CMDLINE_LINUX_DEFAULT entry must be located. It usually has the following
value:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
In order to invoke the Kernel with the usbfs_memory_mb parameter, it should be modified like:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=256"
As a final step, GRUB has to be updated by executing the update-grub script:
sudo update-grub
If all went well, after rebooting the system, the kernel will utilize the requested amount of memory for the usbcore
subsystem.
Note
On systems with GRUB Legacy support the bootloader settings are controlled by other files ( e.←-
g. "/boot/grub/menu/c.lst" etc.). In this case it is recommended to upgrade your bootloader to
GRUB2 :
sudo apt-get install grub2
If, for some reason, this is not an option, then the menu.lst itself could be directly modified as an absolutely
last resort. Always keep in mind that it is strongly recommended not to tamper directly with files in the
/boot/grub directory! The smallest typing error can render the system not bootable!
8.3.5.1 For Odroid-XU3 Users
To adapt the usbfs buffer size using Odroid-XU3, please follow these steps:
1. Open the file /media/boot/boot.ini as root.
2. Add or adapt the string "usbcore.usbfs_memory_mb=256" at the end of the boot arguments using a blank:
setenv bootargs "... usbcore.usbfs_memory_mb=256"
3. Save the file.
4. Reboot the Odroid-XU3 board.
MATRIX VISION GmbH