Skip to content

Instantly share code, notes, and snippets.

View rogeliodh's full-sized avatar

Rogelio Domínguez Hernández rogeliodh

  • Mexico City
  • 18:07 (UTC -06:00)
View GitHub Profile
@rogeliodh
rogeliodh / ocp-4.2-hugepages-1g.md
Created July 5, 2022 13:26 — forked from williamcaban/ocp-4.2-hugepages-1g.md
Configure 1G Hugepages in OpenShift 4.2

Configure 1G Hugepages in OpenShift 4.2

Update Node Kernel Parameters

Supporting 1G hugepages requires the Kernel to support 1G Hugepages. This is done by applying a boot Kernel parameter.

  • Create a MachineConfig (MC) to apply to the Node type that will be using the 1G hugepages. The following example set 1G hugepages for all worker nodes 50-kargs-1g-hugepages.yaml:
    apiVersion: machineconfiguration.openshift.io/v1
    

kind: MachineConfig

Keybase proof

I hereby claim:

  • I am rogeliodh on github.
  • I am rogeliodh (https://keybase.io/rogeliodh) on keybase.
  • I have a public key ASCxGn_I40bAn5EySAgDO8-Gr1D8TuzRYgbEHYTaQavkfgo

To claim this, I am signing this object:

@rogeliodh
rogeliodh / custom.sh
Last active February 12, 2019 09:42
[x1ii] custom script to extract some info from x1ii
#!/bin/sh
SD=/mnt/mmc/debug
mkdir -p "$SD"
main() {
sleep 3
/bin/mount
/bin/dmesg
ls -lR /proc/
@rogeliodh
rogeliodh / mmc.sh
Created January 20, 2017 22:34
[X1ii] Replacement mmc.sh to run [sdcard]/custom.sh script on boot [tested with FW < 1.5.6]
#!/bin/sh
if [ "$ACTION" == "add" ]
then
echo add > /tmp/mmc_add
/bin/mount -t vfat -o iocharset=utf8,shortname=mixed /dev/$1 /mnt/mmc
if [ "$?" != "0" ]
then
/bin/mount -o iocharset=utf8 /dev/$1 /mnt/mmc
fi
@rogeliodh
rogeliodh / x1ii_fw_pack.sh
Created January 20, 2017 22:32
script to repack Fiio's X1ii firmware files
#!/bin/sh
set -e
cd myfw
# mkyaffs2 from mkyaffs2 0.2.9_20120815
sudo ../mkyaffs2 fifo_rootfs fifo_rootfs.yaffs2
echo -n `md5sum fifo_rootfs.yaffs2 | cut -c1-32` > fifo_rootfs.yaffs2.md5
tar zcvf ../X1II.repacked.fw fifo_uimage fifo_uimage.md5 fifo_uimageesmt fifo_uimageesmt.md5 fifo_rootfs.yaffs2 fifo_rootfs.yaffs2.md5
@rogeliodh
rogeliodh / x1ii_fw_unpack.sh
Created January 20, 2017 22:31
script to unpack Fiio's X1ii firmware files
#!/bin/sh
set -e
mkdir -p myfw
tar zxvf X1II.fw -C myfw
# unyaffs2 from yaffs2utils is not working
#sudo ./unyaffs2 myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs
# Use unyaffs from ubuntu's unyaffs package (apt-get install unyaffs)
sudo unyaffs myfw/fifo_rootfs.yaffs2 myfw/fifo_rootfs
@rogeliodh
rogeliodh / diff -ruN X1II-FW1.2 X1II-FW1.3.3 | diffstat
Last active November 1, 2016 13:05
Changes between Fiio X1 (2nd gen) firmware 1.2 and 1.3.3
X1II.fw |binary
X1II/fifo_rootfs.yaffs2 |binary
X1II/fifo_rootfs.yaffs2.md5 | 2
X1II/fifo_rootfs/lib/libtag.so.1 |binary
X1II/fifo_rootfs/usr/pv-project/320x240-Resource/Config/pic_list2.txt | 4
X1II/fifo_rootfs/usr/pv-project/320x240-Resource/Config/pic_list3.txt | 4
X1II/fifo_rootfs/usr/pv-project/320x240-Resource/Config/pic_list4.txt | 4
X1II/fifo_rootfs/usr/pv-project/320x240-Resource/Config/pic_list5.txt | 4
X1II/fifo_rootfs/usr/pv-project/320x240-Resource/Config/pic_list6.txt | 4
X1II/fifo_rootfs/usr/pv-project/320x240-Resource/Config/txt_list_big.txt | 1
[ 0.000000] Linux version 2.6.31.3-svn663 (chenyou@skytc7) (gcc version 4.1.2) #315 PREEMPT Sat Oct 1 20:55:25 CST 2016
[ 0.000000] Jz47XX Floating coprocessor work on 32*32bit mode
[ 0.000000] console [early0] enabled
[ 0.000000] CPU revision is: 2ed0024f (Ingenic JZRISC)
[ 0.000000] FPU revision is: 00330000
[ 0.000000] CPU clock: 432MHz, System clock: 144MHz, Peripheral clock: 72MHz, Memory clock: 72MHz
[ 0.000000] JZ4760B Lepus board setup
[ 0.000000] Power Management for JZ
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
File fs/dev/console is a character special file while file myfs/dev/console is a character special file
File fs/dev/null is a character special file while file myfs/dev/null is a character special file
File fs/dev/zero is a character special file while file myfs/dev/zero is a character special file
diff -ruN fs/etc/init.d/rcS myfs/etc/init.d/rcS
--- fs/etc/init.d/rcS 2016-09-01 00:55:51.000000000 -0500
+++ myfs/etc/init.d/rcS 2016-10-30 09:55:56.000000000 -0600
@@ -38,3 +38,5 @@
/usr/jz_mips/bin/udevd --daemon
/usr/jz_mips/bin/udevstart
@rogeliodh
rogeliodh / -
Created October 22, 2016 18:35
Selecting soc jz4760b. Redirecting HW to hwstub.soc.jz4760b
Starting interactive lua session. Type 'help()' to get some help
information
hwstub
version: 4.3
device
version: 4.3.0
target
id: 0x37345a4a (JZ47)
name: JZ4760 USB Boot Device