Welcome to the Rockbox Technical Forums!
[ 1.864347] gpio_request GPIO 19 , name r3pro_dac_choice[ 1.870148] CARD: cs43131 platform dac error[ 1.874607] cs43131-codec: probe of 1-0030 failed with error -22[ 1.880988] gpio_request GPIO 19 , name r3pro_dac_choice[ 1.886888] GPIO 37 , name es9218 reset[ 1.891070] gpio_request GPIO 37 , name es9218 reset[ 1.896423] GPIO 53 , name es9218 bal reset[ 1.900911] gpio_request GPIO 53 , name es9218 bal reset[ 1.906615] GPIO 32 , name es9218 channel sel[ 1.911276] gpio_request GPIO 32 , name es9218 channel sel[ 1.917717] gpio_request GPIO 19 , name r3pro_dac_choice[ 1.924252] jz-asoc-aic jz-asoc-aic: Aic core probe success[ 1.930454] jz-asoc-aic-i2s jz-asoc-aic-i2s: i2s platform probe success[ 1.937589] jz-asoc-pcm jz-asoc-pcm: pcm platform probe success[ 1.944062] [HBC3K] hbc3000_driver_init[ 1.948242] gpio_request GPIO 46 , name JTAG_GPIO_PORT_TDI[ 1.954151] gpio_request GPIO 44 , name JTAG_GPIO_PORT_TDO[ 1.960083] gpio_request GPIO 45 , name JTAG_GPIO_PORT_TMS[ 1.965964] gpio_request GPIO 47 , name JTAG_GPIO_PORT_TCK[ 1.971887] gpio_request GPIO 39 , name GPIO_HBC3000_PIN_RESET[ 1.978155] gpio_request GPIO 40 , name GPIO_HBC3000_PIN_SDO[ 1.984189] gpio_request GPIO 42 , name GPIO_HBC3000_PIN_CLK[ 1.990288] gpio_request GPIO 41 , name GPIO_HBC3000_PIN_CS[ 1.996262] gpio_request GPIO 43 , name HBC2500_PWR[ 2.001562] gpio_request GPIO 72 , name HBC2500_PWR_1V2[ 2.007176] [HBC3K] hbc3000_probe finish.[ 2.011474] [HBC3K] hbc3000_init finish[ 2.015547] gpio_request GPIO 19 , name r3pro_dac_choice[ 2.021334] CARD: es9218 platform card error[ 2.025798] ingenic-r3pro-cs43131: probe of ingenic-r3pro-cs43131 failed with error -22[ 2.034282] gpio_request GPIO 19 , name r3pro_dac_choice[ 2.040074] gpio_request GPIO 54 , name r3pro_mute[ 2.045434] codec->dev =80696f10[ 2.049513] dma dma0chan4: Channel 4 have been requested.(phy id 3,type 0x06 desc a2190000)[ 2.067237] ingenic-r3pro-es9218 ingenic-r3pro-es9218: es9218-hifi <-> jz-asoc-aic-i2s mapping ok[ 2.077057] dma dma0chan2: Channel 2 have been requested.(phy id 5,type 0x20 desc a2192000)[ 2.094952] ingenic-r3pro-es9218 ingenic-r3pro-es9218: es9218-hifi <-> jz-asoc-pcm mapping ok[ 2.105335] sa_spdif_device_init success[ 2.119303] sa_spdif sa_spdif.0: spdif dump dai <-> jz-asoc-aic-spdif mapping ok[ 2.129725] SWITCH: init OK
mount -t debugfs debugfs /sys/kernel/debug
GPIOs 0-31, GPIO A: gpio-16 (lcd rst ) out lo gpio-17 (usb-insert-detect ) in loGPIOs 32-63, GPIO B: gpio-32 (es9218 channel sel ) out lo gpio-35 (GPIO_AMP_PWR ) out lo gpio-37 (es9218 reset ) out lo gpio-38 (mmc_power ) out hi gpio-39 (GPIO_HBC3000_PIN_RES) out lo gpio-40 (GPIO_HBC3000_PIN_SDO) out lo gpio-41 (GPIO_HBC3000_PIN_CS ) out hi gpio-42 (GPIO_HBC3000_PIN_CLK) out lo gpio-43 (HBC2500_PWR ) out lo gpio-44 (JTAG_GPIO_PORT_TDO ) in lo gpio-45 (JTAG_GPIO_PORT_TMS ) out lo gpio-46 (JTAG_GPIO_PORT_TDI ) out lo gpio-47 (JTAG_GPIO_PORT_TCK ) out lo gpio-48 (lcd rd ) out lo gpio-51 (lcd vsync ) in lo gpio-53 (es9218 bal reset ) out lo gpio-54 (r3pro_mute ) out lo gpio-57 (drvvbus_pin ) out lo gpio-58 (rtc32k ) in lo gpio-60 (prev key ) in hi gpio-63 (power key ) in hiGPIOs 64-95, GPIO C: gpio-72 (HBC2500_PWR_1V2 ) out lo gpio-80 (oob_irq ) in lo gpio-81 (wifi_reset ) out lo gpio-82 (bt_reg_on ) out hi gpio-83 (host_wake_bt ) out hi gpio-84 (bt_wake_host ) in lo gpio-85 (axp_irq ) in hi gpio-86 (mmc_detect ) in lo gpio-87 (GTP_INT_IRQ ) out lo gpio-88 (lcd power ) out hi gpio-89 (BL PWR ) in loGPIOs 96-101, GPIO D: gpio-98 (otg-id-detect ) in hi gpio-99 (GTP_RST_PORT ) out lo gpio-100 (lp5562_en ) out hi
# cat /sys/kernel/debug/mmc0/iosclock: 48000000 Hzvdd: 15 (2.7 ~ 2.8 V)bus mode: 2 (push-pull)chip select: 0 (don't care)power mode: 2 (on)bus width: 2 (4 bits)timing spec: 2 (sd high-speed)signal voltage: 0 (3.30 V)# cat /sys/kernel/debug/mmc1/iosclock: 48000000 Hzvdd: 20 (3.2 ~ 3.3 V)bus mode: 2 (push-pull)chip select: 0 (don't care)power mode: 2 (on)bus width: 2 (4 bits)timing spec: 2 (sd high-speed)signal voltage: 0 (3.30 V)
# cat /sys/kernel/debug/usb/devicesT: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1P: Vendor=1d6b ProdID=0002 Rev= 3.10S: Manufacturer=Linux 3.10.14 dwc2-hcdS: Product=DesignWare USB2.0 High-Speed Host ControllerS: SerialNumber=dwc2C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mAI:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hubE: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
# cat /sys/class/i2c-adapter/i2c-0/0-0038/nameft6x06_ts# cat /sys/class/i2c-adapter/i2c-0/0-0040/namegslX680_ts# cat /sys/class/i2c-adapter/i2c-0/0-005d/nameGT9XX-TS# cat /sys/class/i2c-adapter/i2c-1/1-0030/namecs43131-codec# cat /sys/class/i2c-adapter/i2c-1/1-003d/namesau# cat /sys/class/i2c-adapter/i2c-1/1-0048/namees9218# cat /sys/class/i2c-adapter/i2c-2/2-001e/namekx126# cat /sys/class/i2c-adapter/i2c-2/2-0030/namelp5562# cat /sys/class/i2c-adapter/i2c-2/2-0034/nameaxp_mfd# cat /sys/class/i2c-adapter/i2c-2/2-0062/namecw201x
# cat /sys/kernel/debug/regulator/GPIO_AMP_PWR/ axp_buck3/ axp_ldo3/ regulator-dummy/axp_buck1/ axp_ldo1/ axp_ldo4/ supply_mapaxp_buck2/ axp_ldo2/ axp_ldoio0/# cat /sys/kernel/debug/regulator/supply_mapaxp_ldoio0 -> (null).ldoio0axp_buck3 -> (null).vdd_cpuaxp_buck2 -> (null).vdd_coreaxp_buck1 -> (null).dcdc1axp_ldo4 -> (null).ldo4axp_ldo3 -> (null).ldo3axp_ldo2 -> (null).ldo2axp_ldo1 -> (null).ldo1GPIO_AMP_PWR -> (null).es9218-avcc18GPIO_AMP_PWR -> (null).es9218-avcc33GPIO_AMP_PWR -> (null).es9218-vccaGPIO_AMP_PWR -> (null).es9218-avddGPIO_AMP_PWR -> (null).hbc-power
# cat /sys/class/power_supply/axp_battery/voltage_max_design4200# cat /sys/class/power_supply/axp_battery/voltage_min_design3400# cat /sys/class/power_supply/axp_battery/ueventPOWER_SUPPLY_NAME=axp_batteryPOWER_SUPPLY_MODEL_NAME=axp_batteryPOWER_SUPPLY_STATUS=DischargingPOWER_SUPPLY_PRESENT=1POWER_SUPPLY_HEALTH=GoodPOWER_SUPPLY_TECHNOLOGY=Li-ionPOWER_SUPPLY_VOLTAGE_MAX_DESIGN=4200POWER_SUPPLY_VOLTAGE_MIN_DESIGN=3400POWER_SUPPLY_VOLTAGE_NOW=4000000POWER_SUPPLY_CURRENT_NOW=127000POWER_SUPPLY_ENERGY_FULL_DESIGN=1900POWER_SUPPLY_CAPACITY=0POWER_SUPPLY_TEMP=300
# cat /sys/kernel/debug/regmap/1-0048/access cache_dirty name rbtreecache_bypass cache_only range registers# cat /sys/kernel/debug/regmap/1-0048/namees9218# cat /sys/kernel/debug/regmap/1-0048/range0-4b# cat /sys/kernel/debug/regmap/1-0048/registers(cannot read):[ ] i2c i2c-1: i2c_jz_irq 449, I2C transfer error, ABORT interrupt[ ] i2c i2c-1: --I2C txabrt:[ ] i2c i2c-1: --I2C TXABRT[0]=I2C_TXABRT_ABRT_7B_ADDR_NOACK
# cat /proc/bus/input/devicesI: Bus=0019 Vendor=0001 Product=0002 Version=0100N: Name="earpods_adc"P: Phys=earpods-adc/input0S: Sysfs=/devices/platform/earpods_adc.0/input/input0U: Uniq=H: Handlers=kbd event0B: PROP=0B: EV=3B: KEY=10000 138 0 0 0 0 0I: Bus=0019 Vendor=0001 Product=0010 Version=0100N: Name="adc_key"P: Phys=adc_key/input0S: Sysfs=/devices/platform/adc_key.0/input/input1U: Uniq=H: Handlers=kbd event1B: PROP=0B: EV=3B: KEY=18 0 c0000 0 0 0I: Bus=0018 Vendor=0038 Product=0000 Version=0000N: Name="kx126-accel"P: Phys=S: Sysfs=/devices/platform/jz-i2c.2/i2c-2/2-001e/input/input2U: Uniq=H: Handlers=event2B: PROP=0B: EV=9B: ABS=7I: Bus=0018 Vendor=0038 Product=0000 Version=0000N: Name="kx126-stepdet"P: Phys=S: Sysfs=/devices/platform/jz-i2c.2/i2c-2/2-001e/input/input3U: Uniq=H: Handlers=event3B: PROP=0B: EV=9B: ABS=100 0I: Bus=0018 Vendor=0038 Product=0000 Version=0000N: Name="kx126-stepcnt"P: Phys=S: Sysfs=/devices/platform/jz-i2c.2/i2c-2/2-001e/input/input4U: Uniq=H: Handlers=event4B: PROP=0B: EV=9B: ABS=100 0I: Bus=0019 Vendor=0001 Product=0001 Version=0100N: Name="gpio-keys"P: Phys=gpio-keys/input0S: Sysfs=/devices/platform/gpio-keys/input/input5U: Uniq=H: Handlers=kbd event5B: PROP=0B: EV=3B: KEY=20 0 100000 0 0 0I: Bus=0018 Vendor=dead Product=beef Version=28bbN: Name="GT9XX-TS"P: Phys=Ȥ▒▒▒HR▒i▒0▒▒i▒0▒▒S: Sysfs=/devices/virtual/input/input6U: Uniq=main_tsH: Handlers=kbd event6B: PROP=2B: EV=bB: KEY=400 0 0 0 0 0 40000800 40 0 0 0B: ABS=2650000 0
Available devices:/dev/input/event0: earpods_adc/dev/input/event1: adc_key/dev/input/event2: kx126-accel/dev/input/event3: kx126-stepdet/dev/input/event4: kx126-stepcnt/dev/input/event5: gpio-keys/dev/input/event6: GT9XX-TSSelect the device event number [0-6]:Input driver version is 1.0.1Input device ID: bus 0x19 vendor 0x1 product 0x10 version 0x100Input device name: "adc_key"Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 114 (KEY_VOLUMEDOWN) Event code 115 (KEY_VOLUMEUP) Event code 163 (KEY_NEXTSONG) Event code 164 (KEY_PLAYPAUSE)Properties:Testing ... (interrupt to exit)Event: time 1717572858.161343, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 1Event: time 1717572858.161343, -------------- SYN_REPORT ------------Event: time 1717572858.331344, type 1 (EV_KEY), code 164 (KEY_PLAYPAUSE), value 0Event: time 1717572858.331344, -------------- SYN_REPORT ------------Event: time 1717572866.361343, type 1 (EV_KEY), code 163 (KEY_NEXTSONG), value 1Event: time 1717572866.361343, -------------- SYN_REPORT ------------Event: time 1717572866.681755, type 1 (EV_KEY), code 163 (KEY_NEXTSONG), value 0Event: time 1717572866.681755, -------------- SYN_REPORT ------------Event: time 1717572896.781336, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 1Event: time 1717572896.781336, -------------- SYN_REPORT ------------Event: time 1717572896.931329, type 1 (EV_KEY), code 114 (KEY_VOLUMEDOWN), value 0Event: time 1717572896.931329, -------------- SYN_REPORT ------------Event: time 1717572898.161345, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1Event: time 1717572898.161345, -------------- SYN_REPORT ------------Event: time 1717572898.331342, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0Event: time 1717572898.331342, -------------- SYN_REPORT ------------
Select the device event number [0-6]: 5Input driver version is 1.0.1Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100Input device name: "gpio-keys"Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 116 (KEY_POWER) Event code 165 (KEY_PREVIOUSSONG)Properties:Testing ... (interrupt to exit)Event: time 1717572955.389456, type 1 (EV_KEY), code 165 (KEY_PREVIOUSSONG), value 1Event: time 1717572955.389456, -------------- SYN_REPORT ------------Event: time 1717572955.573842, type 1 (EV_KEY), code 165 (KEY_PREVIOUSSONG), value 0Event: time 1717572955.573842, -------------- SYN_REPORT ------------Event: time 1717572956.583762, type 1 (EV_KEY), code 116 (KEY_POWER), value 1Event: time 1717572956.583762, -------------- SYN_REPORT ------------Event: time 1717572956.781806, type 1 (EV_KEY), code 116 (KEY_POWER), value 0Event: time 1717572956.781806, -------------- SYN_REPORT ------------
Select the device event number [0-6]: 6Input driver version is 1.0.1Input device ID: bus 0x18 vendor 0xdead product 0xbeef version 0x28bbInput device name: "GT9XX-TS"Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 102 (KEY_HOME) Event code 139 (KEY_MENU) Event code 158 (KEY_BACK) Event code 330 (BTN_TOUCH) Event type 3 (EV_ABS) Event code 48 (ABS_MT_TOUCH_MAJOR) Value 0 Min 0 Max 255 Event code 50 (ABS_MT_WIDTH_MAJOR) Value 0 Min 0 Max 255 Event code 53 (ABS_MT_POSITION_X) Value 0 Min 0 Max 360 Event code 54 (ABS_MT_POSITION_Y) Value 0 Min 0 Max 480 Event code 57 (ABS_MT_TRACKING_ID) Value 0 Min 0 Max 255Properties: Property type 1 (INPUT_PROP_DIRECT)Testing ... (interrupt to exit)tap on top left cornerEvent: time 1717573100.261544, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1Event: time 1717573100.261544, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 13Event: time 1717573100.261544, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 16Event: time 1717573100.261544, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 22Event: time 1717573100.261544, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 22Event: time 1717573100.261544, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0Event: time 1717573100.261544, ++++++++++++++ SYN_MT_REPORT ++++++++++++...same listing by 4 times...Event: time 1717573100.381512, -------------- SYN_REPORT ------------Event: time 1717573100.411504, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0Event: time 1717573100.411504, -------------- SYN_REPORT ------------tap on top right cornerEvent: time 1717573128.081561, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1Event: time 1717573128.081561, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 353Event: time 1717573128.081561, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 16Event: time 1717573128.081561, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 15Event: time 1717573128.081561, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 15Event: time 1717573128.081561, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0Event: time 1717573128.081561, ++++++++++++++ SYN_MT_REPORT ++++++++++++...same listing by 4 times...Event: time 1717573128.201502, ++++++++++++++ SYN_MT_REPORT ++++++++++++Event: time 1717573128.201502, -------------- SYN_REPORT ------------Event: time 1717573128.231509, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0Event: time 1717573128.231509, -------------- SYN_REPORT ------------tap on bottom left cornerEvent: time 1717573146.691516, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1Event: time 1717573146.691516, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 16Event: time 1717573146.691516, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 459Event: time 1717573146.691516, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 30Event: time 1717573146.691516, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 30Event: time 1717573146.691516, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0Event: time 1717573146.691516, ++++++++++++++ SYN_MT_REPORT ++++++++++++...same listing by 3 times...Event: time 1717573146.751508, -------------- SYN_REPORT ------------Event: time 1717573146.781508, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0Event: time 1717573146.781508, -------------- SYN_REPORT ------------tap on bottom right cornerEvent: time 1717573170.591513, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1Event: time 1717573170.591513, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 340Event: time 1717573170.591513, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 458Event: time 1717573170.591513, type 3 (EV_ABS), code 48 (ABS_MT_TOUCH_MAJOR), value 30Event: time 1717573170.591513, type 3 (EV_ABS), code 50 (ABS_MT_WIDTH_MAJOR), value 30Event: time 1717573170.591513, type 3 (EV_ABS), code 57 (ABS_MT_TRACKING_ID), value 0Event: time 1717573170.591513, ++++++++++++++ SYN_MT_REPORT ++++++++++++...same listing by 3 times...Event: time 1717573170.681557, -------------- SYN_REPORT ------------Event: time 1717573170.711562, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0Event: time 1717573170.711562, -------------- SYN_REPORT ------------
Here is Linux kernel source code for HiBy R players (HiBy OS based) https://www.reddit.com/r/Hiby/comments/1i5q7ac/comment/m85skc5/
axp2101.kocodec_es9219.kocw2015.kocywdhd.kogt9xx_touch.koi2c_gpio_add.kokeyboard_adc.kokeyboard_gpio_add.kokeyboard_ring.kolcd_st77903_8bit.koleds_sgm31324_add.kopwm_backlight.kormem_manager.kosa_config_module.kosa_earpods_adc.kosa_hgl_dma.kosa_sound_hbc3000.kosa_sound_switch.kosoc_adc.kosoc_aic.kosoc_efuse.kosoc_fb.kosoc_gpio.kosoc_i2c.kosoc_msc.kosoc_pwm.kosoc_utils.kotcs1421_add.koutils.kox1600_hiby_r3ii_sound_card.ko
You make it sound relatively easy.
I have tried (failed) to repack the firmware for the HiBy R1 in an attempt to run something custom on it.
The information in the list you provide would be enough for a hosted port?
I am sure I can provide most of that for the R1 based on disassembly of the firmware/driver .ko’s. All drivers are provided as modules and decompile very well.
Quote from: 7o9 on April 09, 2025, 10:34:08 AMYou make it sound relatively easy.It is, relatively. Quote from: 7o9 on April 09, 2025, 10:34:08 AMI have tried (failed) to repack the firmware for the HiBy R1 in an attempt to run something custom on it.The usual reason for this failing is because you didn't extract (or repack) the firmware as root. If you don't, certain files will not end up with the correct permissions.Quote from: 7o9 on April 09, 2025, 10:34:08 AMThe information in the list you provide would be enough for a hosted port?The AGPTek Rocker was the first port to hibyos, and the X3II, X20, and hosted ErosQ/K ports were relatively minor tweaks from there.You only need to build enough to get the "bootloader" (ie a glorified boot menu) to build, for this you need to have the basic display stuff (eg dimensions, resolution) and how to map the various buttons (ie /dev/input*) into something useful. Next you'll need to figure out power management and how to talk to the audio hardware, and from there you should be able to do a plugin-less build. Getting the plugins building will require creating keymaps for many (if not most) of them. It's still a bit of work, but far, far less than a native port would be.Quote from: 7o9 on April 09, 2025, 10:34:08 AMI am sure I can provide most of that for the R1 based on disassembly of the firmware/driver .ko’s. All drivers are provided as modules and decompile very well.To create a new native port, you need to effectively reverse-engineer the hardware schematic to figure out how things are connected. Disassembly of the original firmware can help with that, and of course it should hopefully be able to tell you how to talk to some of the custom hardware. FWIW it's possible (if not likely) that the FPGA stuff is handled by the bootloader before Linux ever starts.( See https://www.rockbox.org/wiki/NewPort )
Page created in 0.068 seconds with 17 queries.