Skip to content

Instantly share code, notes, and snippets.

View bartcubbins's full-sized avatar

Pavel Dubrova bartcubbins

  • 08:58 (UTC +03:00)
View GitHub Profile
P00: GPT (00000000, 00000100)
P01: TA (00000100, 00001000)
P02: sbl1 (00001100, 00000400)
P03: s1sbl (00001500, 00000200)
P04: aboot (00001700, 00000800)
P05: rpm (00001F00, 00000400)
P06: tz (00002300, 00000400)
P07: hyp (00002700, 00000400)
P08: alt_sbl1 (00002B00, 00000400)
P09: alt_s1sbl (00002F00, 00000200)
Kernel tree:
https://github.com/bartcubbins/kernel/tree/57r1_kanuti
Device tree:
https://github.com/bartcubbins/device-sony-kanuti/tree/k4.4
https://github.com/bartcubbins/device-sony-tulip/tree/k4.4
Current status:
1. pstore node was updated (pstore is ok).
2. pn547 (ok).
[ 0.000000] Booting Linux on physical CPU 0x100
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.21-g09bd5f4794fe-dirty (cubbins@BuildMachine) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) #67 SMP PREEMPT Fri Oct 20 16:15:10 EEST 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd031]
[ 0.000000] Machine: SoMC Tulip SMB1360
[ 0.000000] Reserved memory: reserved region for node 'external_image__region': base 0x0000000085b00000, size 13 MiB
[ 0.000000] Reserved memory: reserved region for node 'modem_adsp_region': base 0x0000000086800000, size 85 MiB
[ 0.000000] Reserved memory: reserved region for node 'peripheral_region': base 0x000000008bd00000, size 6 MiB
[ 0.000000] Reserved memory: reserved region for node 'pstore_reserve_mem_region@a0000000': base 0x00000000a0000000, size 1 MiB
[ 20.201445] usb 1-1: USB disconnect, device number 22
[ 20.592704] usb 1-1: new low-speed USB device number 23 using msm_hsusb_host
[ 20.750043] usb 1-1: New USB device found, idVendor=09da, idProduct=c10a
[ 20.750059] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 20.750071] usb 1-1: Product: USB Mouse
[ 20.750082] usb 1-1: Manufacturer: A4Tech
[ 20.757553] input: A4Tech USB Mouse as /devices/soc/78d9000.usb/msm_hsusb_host/usb1/1-1/1-1:1.0/0003:09DA:C10A.0002/input/input5
[ 20.812886] hid-generic 0003:09DA:C10A.0002: input,hidraw0: USB HID v1.10 Mouse [A4Tech USB Mouse] on usb-msm_hsusb_host-1/input0
[ 23.078783] SMB:brain_work: Cap=78, 78, VBAT=4007, IBAT=482, T=350, USB=0, Type=0 BMD=1, Full=0,0 Delta=0
[ 23.078814] SMB:brain_work: vdd_max=4350, rechg=200, input_ma=500, input_type=0, fast_chg=1500 time=0, main=0, en=0
static int smb1360_regulator_init(struct smb1360_chip *chip)
{
int rc = 0;
struct regulator_init_data *init_data;
struct regulator_config cfg = {};
init_data = of_get_regulator_init_data(chip->dev, chip->dev->of_node);
if (!init_data) {
dev_err(chip->dev, "Unable to allocate memory\n");
return -ENOMEM;
%с Символ типа char
%d Десятичное число целого типа со знаком
%i Десятичное число целого типа со знаком
%е Научная нотация (е нижнего регистра)
%Е Научная нотация (Е верхнего регистра)
%f Десятичное число с плавающей точкой
%g Использует код %е или %f — тот из них, который короче (при использовании %g используется е нижнего регистра)
%G Использует код %Е или %f — тот из них, который короче (при использовании %G используется Е верхнего регистра)
%о Восьмеричное целое число без знака
%s Строка символов
1. move sdcard detect fix from kanuti dtsi to msm8939-mtp.dtsi (done!)
2. power driver: smb1360 (fixed!)
3. rework dsi panel dt (done!)
4. k4.4 pstore driver (fixed!)
5. audio (WIP)(the implementation is ready. just need to add support for our msm8x16-audio-codec and maybe some IOMMU fixes)
6. camera (IN THE FUTURE😁)
7. mdss (fixed!)
8. usb (fixed!)
9. qpnp-vibrator (fixed!)
10. display on/off bug (fixed!)
[ 0.000000] Booting Linux on physical CPU 0x100
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.21-perf-g226cc2deb14c-dirty (cubbins@BuildMachine) (gcc version 4.9 20150123 (prerelease) (GCC) ) #95 SMP PREEMPT Sun Jun 18 19:41:22 EEST 2017
[ 0.000000] Boot CPU: AArch64 Processor [410fd031]
[ 0.000000] Machine: SoMC Tulip SMB1360
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: reserved region for node 'external_image__region@0': base 0x0000000085b00000, size 13 MiB
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.31-perf-g9bb0bb30aedd-dirty (cubbins@BuildMachine) (gcc version 4.9 20150123 (prerelease) (GCC) ) #77 SMP PREEMPT Sun Jun 18 14:46:35 EEST 2017
[ 0.000000] CPU: AArch64 Processor [410fd031] revision 1
[ 0.000000] alternatives: enabling workaround for ARM errata 826319, 827319, 824069
[ 0.000000] alternatives: enabling workaround for ARM erratum 845719
[ 0.000000] Machine: SoMC Tulip SMB1360
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 16.560288] msm_thermal:do_cluster_freq_ctrl Limiting CPU0 max frequency to 1113600. Temp:75
[ 16.560297] msm_thermal:do_cluster_freq_ctrl Limiting CPU1 max frequency to 1113600. Temp:75
[ 16.560302] msm_thermal:do_cluster_freq_ctrl Limiting CPU2 max frequency to 1113600. Temp:75
[ 16.560306] msm_thermal:do_cluster_freq_ctrl Limiting CPU3 max frequency to 1113600. Temp:75
[ 16.560311] msm_thermal:do_cluster_freq_ctrl Limiting CPU4 max frequency to 800000. Temp:75
[ 16.560316] msm_thermal:do_cluster_freq_ctrl Limiting CPU5 max frequency to 800000. Temp:75
[ 16.560320] msm_thermal:do_cluster_freq_ctrl Limiting CPU6 max frequency to 800000. Temp:75
[ 16.560325] msm_thermal:do_cluster_freq_ctrl Limiting CPU7 max frequency to 800000. Temp:75